public ActionResult <BookVM> Get(long id) { return(BookCollection.GetBookVMs(_accessor.HttpContext.Request.Host.Value)?.FirstOrDefault(x => x.Id == id)); }
public ActionResult <IEnumerable <BookVM> > Get([FromQuery] QuerySearch query) { return(BookCollection.GetBookVMs(_accessor.HttpContext.Request.Host.Value, query)?.ToList()); }