// GET: Users public ActionResult Index() { List <UserBLL> items = null; try { using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL()) { items = ctx.UserGetAll(0, 25); } } catch (Exception ex) { Logger.Logger.Log(ex); } return(View(items)); }