public ActionResult <IEnumerable <Coffee> > Get([FromQuery] Filter filter) { try { return(Ok(_CoffeeService.GetFilteredCoffee(filter))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <IEnumerable <Coffee> > Get([FromQuery] Filter filter) { try { return(Ok(_CoffeeService.GetFilteredCoffee(filter))); } catch (Exception e) { return(BadRequest(e.Message)); } }