CapRaffle.Controllers.CategoryController.Index C# (CSharp) Méthode

Index() public méthode

public Index ( ) : System.Web.Mvc.ViewResult
Résultat System.Web.Mvc.ViewResult
        public ViewResult Index()
        {
            var model = new CategoryListViewModel { Categories = repository.Categories.OrderBy(c => c.Name) };

            return View(model);
        }