public ActionResult AddRepair(Repair repair) { repair.OwnerId = (Session["Account"] as AccountInfo).Id; repair.ApplyDate = DateTime.Now.Date; var repairService = new RepairService(); return(Json(repairService.Add(repair))); }