public ActionResult UserItem(MemberUser user)
        {
            MemberUser saveUser = db.MemberUsers.Find(user.Id);
            saveUser.IsApproved = user.IsApproved;
            saveUser.IsLockedOut = user.IsLockedOut;
            db.SaveChanges();

            return View("_UserItem", saveUser);
        }
 public ActionResult Edit(MemberUser memberuser)
 {
     if (ModelState.IsValid)
     {
         db.Entry(memberuser).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.RoleId = new SelectList(db.MemberRoles, "Id", "RoleName", memberuser.RoleId);
     return View(memberuser);
 }
        public ActionResult Create(MemberUser memberuser)
        {
            if (ModelState.IsValid)
            {
                memberuser.Id = Guid.NewGuid();
                db.MemberUsers.Add(memberuser);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.RoleId = new SelectList(db.MemberRoles, "Id", "RoleName", memberuser.RoleId);
            return View(memberuser);
        }