public ActionResult EnrollmentControl(bool?excel, bool?usecurrenttag, OrgSearchModel m) { if (excel != true) { return(new EnrollmentControlResult { OrgSearch = m, UseCurrentTag = usecurrenttag ?? false }); } var d = (from p in EnrollmentControlModel.List(m, usecurrenttag: usecurrenttag ?? false) orderby p.Name select p).ToDataTable(); return(d.ToExcel("EnrollmentControl.xlsx")); }
public ActionResult EnrollmentControl2b(string na, string j) { var m = OrgSearchModel.DecodedJson(j); return(View(EnrollmentControlModel.List(m, na))); }