CapRaffle.Controllers.CategoryController.Index C# (CSharp) Method

Index() public method

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

            return View(model);
        }