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