Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <IActionResult> DeleteAsync(int id) { var result = await _phonebookService.DeleteAsync(id); if (!result.Success) { return(BadRequest(new ErrorDTO(result.Message))); } var phoneBookDTO = _mapper.Map <PhoneBook, PhoneBookDTO>(result.Resource); return(Ok(phoneBookDTO)); }