コード例 #1
0
        public Result Add(LifeInsurance lifeInsurance)
        {
            var result = new Result();

            try
            {
                LifeInsuranceService lifeInsuranceService = new LifeInsuranceService();
                lifeInsuranceService.Add(lifeInsurance);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }