Boy_Scouts_Scheduler.Controllers.GroupController.Index C# (CSharp) Метод

Index() публичный Метод

public Index ( int start, int itemsPerPage = 20, string orderBy = "ID", bool desc = false ) : System.Web.Mvc.ViewResult
start int
itemsPerPage int
orderBy string
desc bool
Результат System.Web.Mvc.ViewResult
        public ViewResult Index(int start = 0, int itemsPerPage = 20, string orderBy = "ID", bool desc = false)
        {
            ViewBag.Count = db.Groups.Count(g => g.Event.ID == eventID);
            ViewBag.Start = start;
            ViewBag.ItemsPerPage = itemsPerPage;
            ViewBag.OrderBy = orderBy;
            ViewBag.Desc = desc;

            return View();
        }