// GET: Categoria public ActionResult Index() { var categoriesViewModel = _AppServiceCategories.GetAll(); return(View(categoriesViewModel)); }
// GET: api/Categorias public IEnumerable <CategoriesViewModel> Get() { return(_AppServiceCategories.GetAll()); }