public ActionResult <Book> Get(int id) { return(DataFake.Books().Where(x => x.Id == id).FirstOrDefault()); }
public ActionResult <IEnumerable <Book> > Genre([FromRoute] string genre) { return(DataFake.Books().Where(x => x.Genre == genre).ToList()); }
public ActionResult <IEnumerable <Book> > Get() { return(DataFake.Books()); }