コード例 #1
0
        public IActionResult AddBenefit([FromBody] InsurancePlanBenefit item)
        {
            try
            {
                //CoversOptionalCover CoversOptionalCover = new CoversOptionalCover
                //{
                //    CoverId  = CoverId,
                //    OptionalCoverId  = OptionalCoverId
                //};

                _itemService.AddBenefit(item);

                return(Ok(item));
            }
            catch (AppException ex)
            {
                return(DefaultError(ex.Message));
            }
        }