// GET: Categoria
        public ActionResult Index()
        {
            var categoriesViewModel = _AppServiceCategories.GetAll();

            return(View(categoriesViewModel));
        }
예제 #2
0
 // GET: api/Categorias
 public IEnumerable <CategoriesViewModel> Get()
 {
     return(_AppServiceCategories.GetAll());
 }