Beispiel #1
0
        public async Task <IActionResult> Update([FromBody] InsurancePolicyDTO dto)
        {
            await _insurancePolicyService.Update(dto);

            return(Ok());
        }
Beispiel #2
0
        public async Task <IActionResult> Create([FromBody] InsurancePolicyDTO dto)
        {
            var resultDTO = await _insurancePolicyService.CreateAsync(dto);

            return(Ok(resultDTO));
        }