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 ReturnHandInDate(string hand) { ComputerModel.SetHandInDate(hand); ComputerModel.GetComputers(); return(View(ComputerModel.GetComputers())); }