/// <summary> /// For handling report posts. /// </summary> public ActionResult ReportPost(ReportsModel model) { switch (model.Category) { case "Shelters": model.ReportViewerName = "reportViewerShelterDetail"; model.ReportUrl = "Report/_ShelterDetail"; Session["ShelterId"] = model.ShelterId; ViewData["Report"] = new ShelterDetail(); break; case "Items": model.ReportViewerName = "reportViewerItemStock"; model.ReportUrl = "Report/_ItemStock"; Session["ReportFilter"] = model.SearchParam; ViewData["Report"] = new ItemsStock(); break; } return(PartialView("Report/_ReportContent", model)); }
public ActionResult ShelterDetailReport() { ViewData["Report"] = new ShelterDetail(); return(PartialView("Report/_ShelterDetail")); }