public ActionResult Index(string namc = "", string plant = "", string line = "", DateTime?startDate = null, DateTime?endDate = null, bool displayAllData = false) { ModelState.Clear(); var vm = new DoorLineDataSearchVM(namc, plant, line, DateTime.Today, DateTime.Today, false); return(View(vm)); }
public ActionResult Index() { DoorLineDataSearchVM vm = new DoorLineDataSearchVM(); TryUpdateModel(vm); var html = ViewRenderedAsString.RenderViewToString("_SampleGrid", vm, ControllerContext); var returnJson = Json(new { success = true, html }); returnJson.MaxJsonLength = int.MaxValue; return(returnJson); }