예제 #1
0
        public async Task <IActionResult> Delete(int id)
        {
            var result = await _consultantService.DeleteByIDAsync(id);

            if (!result.Success)
            {
                return(BadRequest());
            }

            return(Ok(result.Resource));
        }