Beispiel #1
0
 public ActionResult <CategoryVM> Get(long id)
 {
     return(CategoryCollection.GetCategoryVMs(_accessor.HttpContext.Request.Host.Value)?.FirstOrDefault(x => x.Id == id));
 }
Beispiel #2
0
 public ActionResult <IEnumerable <CategoryVM> > Get([FromQuery] QuerySearch query)
 {
     return(CategoryCollection.GetCategoryVMs(_accessor.HttpContext.Request.Host.Value, query)?.ToList());
 }