public ActionResult UpdateRepair(Repair repair) { repair.OwnerId = (Session["Account"] as AccountInfo).Id; var repairService = new RepairService(); return(Json(repairService.UpdateByOwner(repair))); }