public ActionResult DownloadFile(string sdate) { string filecontent = string.Empty; //changed iFTDTLContext to IFTDTLEntities using (var context = new Models.AFMESEntitiesContext()) { DateTime date = DateTime.Parse(sdate); //changed Admits to Files //changed file to files var results = (from f in context.BlindResults where f.ExtractDate.Value.Year == date.Year && f.ExtractDate.Value.Month == date.Month && f.ExtractDate.Value.Day == date.Day select f).ToList(); filecontent = CreateDelimitedData(results); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)