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