public ActionResult Edit(string username)
        {
            MembershipUser user = Membership.GetUser(username);
            if (user != null)
            {
                MembershipUserModel model = new MembershipUserModel(user.ProviderName,
                            user.UserName, user.ProviderUserKey, user.Email, user.PasswordQuestion, user.Comment, user.IsApproved,
                            user.IsLockedOut, user.CreationDate, user.LastLoginDate, user.LastActivityDate, user.LastPasswordChangedDate, user.LastLockoutDate, user.IsOnline);

                if (Request.IsAjaxRequest())
                {
                    return PartialView("MembershipUser/_MembershipUserEdit", model);
                }

                return View(model);
            }
            else
            {
                InfoModel model = new InfoModel()
                {
                    Description = "Podany użytkownik nie istnieje",
                    Action = "Index",
                    Controller = "MembershipUser"
                };
                if (Request.IsAjaxRequest())
                {
                    return PartialView("_Info", model);
                }
                return View("Info", model);
            }
        }
 public ActionResult Edit(MembershipUserModel model)
 {
     membershipUserRepository.EditObject(model);
     return RedirectToAction("Index");
 }