// GET: firm public ActionResult Index(int?page) { ViewBag.Page = page; int pageSize = 10; int pageNumber = (page ?? 1); return(View(_firmService.GetAll().OrderBy(x => x.name).ToPagedList(pageNumber, pageSize))); }
// GET: article/Create public ActionResult Create() { ViewBag.firm_id = new SelectList(_firmService.GetAll(), "id", "name"); return(View()); }