public ActionResult <IEnumerable <Order> > Order([FromRoute] int id) { return(DataFake.Orders().Where(x => x.IdBook == id).ToList()); }
public ActionResult <IEnumerable <Book> > Genre([FromRoute] string genre) { return(DataFake.Books().Where(x => x.Genre == genre).ToList()); }
public ActionResult <Book> Get(int id) { return(DataFake.Books().Where(x => x.Id == id).FirstOrDefault()); }
public ActionResult <IEnumerable <Commentary> > Commentary([FromRoute] int id) { return(DataFake.Commentarys().Where(x => x.IdBook == id).ToList()); }
public ActionResult <long> Status([FromRoute] int id) { return(DataFake.Orders().Where(x => x.Id == id).FirstOrDefault().IdStatus); }
public ActionResult <IEnumerable <Book> > Get() { return(DataFake.Books()); }
public ActionResult <IEnumerable <Order> > Approved() { return(DataFake.Orders().Where(x => x.IdStatus == (long)DataFake.OrderStatus.Approved).ToList()); }
public ActionResult <IEnumerable <Order> > AwaitingPayment() { return(DataFake.Orders().Where(x => x.IdStatus == (long)DataFake.OrderStatus.AwaitingPayment).ToList()); }
public ActionResult <IEnumerable <Order> > Get() { return(DataFake.Orders()); }
public ActionResult <Order> Get(int id) { return(DataFake.Orders().Where(x => x.Id == id).FirstOrDefault()); }
public ActionResult <IEnumerable <Commentary> > Get() { return(DataFake.Commentarys()); }
public ActionResult <ShoppingCar> Get(int id) { return(DataFake.ShoppingCar().Where(x => x.Id == id).FirstOrDefault()); }
public ActionResult <IEnumerable <ShoppingCar> > Get() { return(DataFake.ShoppingCar()); }
public ActionResult <IEnumerable <ShoppingCar> > ShoppingCar([FromQuery] int id) { return(DataFake.ShoppingCar().Where(x => x.IdUser == id).ToList()); }
public ActionResult <IEnumerable <Order> > Order([FromQuery] int id) { return(DataFake.Orders().Where(x => x.IdUser == id).ToList()); }