public async Task <ActionResult <RetailGroupDto> > Get([FromQuery] GetRetailGroup query) { Console.WriteLine("Received request"); var retailGroupDto = await _getRetailGroupHandler.HandleAsync(query); if (retailGroupDto == null) { return(NotFound()); } return(retailGroupDto); }
public async Task <ActionResult <RetailGroup> > Get([FromQuery] GetRetailGroup query) { var retailGroup = await _retailGroupService.Find(query.Id, query.Name); return(retailGroup); }