// [Authorize]
        public ActionResult Index()
        {
            var allUsers = db.GetUser();
            var allUsersByActive = from a in allUsers orderby a.Active select a;

            return View(allUsersByActive);
        }
Пример #2
0
        //public UsersController()
        //{
        //    this.db = new ViewCustomers.DAL.UserRepository(new UserContext());
        //}

        // GET: Users
        public ActionResult Index()
        {
            var allUsers = db.GetUser();

            return(View(allUsers));
        }