Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }