public async Task <IActionResult> Get([FromQuery] FabricanteFilter filter) { try { var fabricante = _mapper.Map <QueryResult <FabricanteDTO> >(await this.GatewayServiceProvider.Get <IFabricanteService>().Get(filter)); return(Ok(fabricante)); } catch (System.Exception) { throw; } }
public async Task <QueryResult <FabricanteDTO> > Get(FabricanteFilter filter) { var fabricante = _mapper.Map <QueryResult <FabricanteDTO> >(await _repository.Get(filter)); return(fabricante); }