public async Task <ActionResult <List <Plant> > > Get() { var queries = HttpContext.Request.Query; if (queries.Count == 0) { return(await _plantService.Get().ConfigureAwait(false)); } return(await _plantService.Get(queries).ConfigureAwait(false)); }
public Plant Get(int id) { return(_plantService.Get(id)); }
public ActionResult <List <Plant> > Get() { return(_plantService.Get()); }
// GET: api/Plant/5 public IHttpActionResult Get(int id) { return(Ok(PlantService.Get(id))); }