Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public IActionResult Get() { try { var product = _repository.GetAllProducts(); return(Ok(Mapper.Map <IEnumerable <Product> >(product))); } catch (Exception ex) { _logger.LogError($"Failed to get Trips {ex}"); return(BadRequest("Error occured")); } }