public JsonResult EditModelYearInsurance(ModelYearInsurance modelYearInsurance) { if (modelYearInsurance != null) { _modelYearInsuranceService.Update(modelYearInsurance); return Json(true); } return Json(false); }
public JsonResult AddModelYearInsurance(ModelYearInsurance modelYearInsurance) { if (modelYearInsurance != null) { modelYearInsurance.Id = Guid.NewGuid(); _modelYearInsuranceService.Add(modelYearInsurance); return Json(true); } return Json(false); }
public JsonResult DeleteModelYearInsurance(ModelYearInsurance modelYearInsurance) { try { if (modelYearInsurance != null) { _modelYearInsuranceService.Remove(modelYearInsurance.Id); return Json(true); } return Json(false); } catch (Exception ex) { return Json(false); } }