コード例 #1
0
        public async Task <IActionResult> DeleteAsync(int urgencyId)
        {
            var result = await _urgencyService.DeleteAsync(urgencyId);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }
            var urgencyResource = _mapper.Map <Urgency, UrgencyResource>(result.Resource);

            return(Ok(urgencyResource));
        }