public async Task <ActionResult <ProductoDto> > DeleteProducto(int id) { var response = await _repository.Delete(id); if (response.Data == null) { return(NotFound()); } if (!response.Success) { return(Conflict(response.Message)); } return(_mapper.Map <ProductoDto>(response.Data)); }