public ActionResult ViewToJsonAction(string lend, string hand) { if (lend != null) { ComputerModel.SetLendDate(lend); } else { ComputerModel.SetHandInDate(hand); } var computerlist = ComputerModel.GetComputers(); var jsonmodel = renderPartialViewToString("_ComputerTable", computerlist); return(Json(jsonmodel)); }
public ActionResult ReturnLendDate(string lend) { ComputerModel.SetLendDate(lend); ComputerModel.GetComputers(); return(PartialView("_DateUpdate")); }