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