Esempio n. 1
0
        // GET: Roles
        public ActionResult Index()
        {
            List <RoleBLL> items = null;

            using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL())
            {
                items = ctx.RoleGetAll(0, 100);
            }
            return(View(items));
        }
 // GET: Roles
 public ActionResult Index()
 {
     try
     {
         List <RoleBLL> items = null;
         using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL())
         {
             items = ctx.RoleGetAll(0, 25);
         }
         return(View(items));
     }
     catch (Exception ex)
     {
         Logger.Logger.Log(ex);
         return(View("Error"));
     }
 }