public ActionResult ShowUsers(int id = 1, bool active = true)
 {
     var modelCreator = new UserModelCreator(ITEMS_ON_PAGE, RANGE, id);
     var model = modelCreator.GetModel(null, active);
     ViewBag.IsActive = active;
     return PartialView("_ShowUsers", model);
 }
        public ActionResult OtherUsers(int id = 1)
        {
            var modelCreator = new UserModelCreator(ITEMS_ON_PAGE, RANGE, id);
            var model = modelCreator.GetModel(User.Identity.GetUserId());

            return PartialView("OtherUsers/_OtherUsers", model);
        }
 public ActionResult Restore(string userId, int id = 1)
 {
     using (var db = new ApplicationDbContext())
     {
         var user = db.Users.Single(x => x.Id == userId);
         user.IsActive = true;
         db.Entry(user).State = EntityState.Modified;
         db.SaveChanges();
     }
     ViewBag.IsActive = false;
     var modelCreator = new UserModelCreator(ITEMS_ON_PAGE, RANGE, id);
     var model = modelCreator.GetModel(null, false);
     return PartialView("_ShowUsers", model);
 }