CapRaffle.Controllers.CategoryController.Index C# (CSharp) 메소드

Index() 공개 메소드

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

            return View(model);
        }