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 | |
Résultat | System.Web.Mvc.ViewResult |
public ViewResult Index(int start = 0, int itemsPerPage = 20, string orderBy = "ID", bool desc = false)
{
ViewBag.Count = db.Stations.Count(s => s.Event.ID == eventID);
ViewBag.Start = start;
ViewBag.ItemsPerPage = itemsPerPage;
ViewBag.OrderBy = orderBy;
ViewBag.Desc = desc;
return View();
}