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