public ActionResult Index(int id) { var model = db.Reports.Find(id); // replace with GetReports(id) // or Models.Services.GetReports() // or ViewModels.GetReports() return View(model); } public ActionResult ExportToExcel(int id) { var model = db.Reports.Find(id); // replace with GetReports(id) // or Models.Services.GetReports() // or ViewModels.GetReports() return ExcelResult; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)