Exemplo n.º 1
0
        // 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)));
        }
Exemplo n.º 2
0
 // GET: article/Create
 public ActionResult Create()
 {
     ViewBag.firm_id = new SelectList(_firmService.GetAll(), "id", "name");
     return(View());
 }