public Result <ExistingInsurance> GetByPlannerId(int id) { var result = new Result <ExistingInsurance>(); ExistingInsuranceService existingInsuranceService = new ExistingInsuranceService(); //result = existingInsuranceService.GetExistingSumAssured(id); ExistingInsurance insuranceResult = existingInsuranceService.GetExistingSumAssured(id); result.Value = insuranceResult; result.IsSuccess = true; return(result); }
public Result Update(ExistingInsurance existingInsurance) { var result = new Result(); try { ExistingInsuranceService existingInsuranceService = new ExistingInsuranceService(); existingInsuranceService.Updatedata(existingInsurance); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }