Ejemplo n.º 1
0
        public async Task <IActionResult> DeleteAsync(int id)
        {
            var result = await _consultantService.DeleteAsync(id);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }
            var consultantResource = _mapper.Map <Consultant, ConsultantResource>(result.Resource);

            return(Ok(consultantResource));
        }