public InsuranceDeposit Update(InsuranceDeposit insuranceDeposit) { insuranceDepositRepository.Update(insuranceDeposit); return insuranceDeposit; }
public ActionResult SaveInsuranceDeposit(InsuranceDeposit insuranceDeposit) { if (insuranceDeposit != null) { if (insuranceDeposit.Id != null && insuranceDeposit.Id != Guid.Empty) { //case edit insuranceDepositService.Update(insuranceDeposit); return Json(true); } else { insuranceDeposit.Id = Guid.NewGuid(); //case insert insuranceDepositService.Add(insuranceDeposit); return Json(true); } } return Json(false); }
public InsuranceDeposit Add(InsuranceDeposit insuranceDeposit) { insuranceDepositRepository.Add(insuranceDeposit); return insuranceDeposit; }