Example #1
0
 public virtual ActionResult Edit(EditMembershipUserModel model, string @return)
 {
     JsonResultData data = new JsonResultData(ModelState);
     if (ModelState.IsValid)
     {
         data.RunWithTry((resultData) =>
         {
             _manager.Edit(Membership, model.UserName, model.Email, model.IsApproved, model.IsLockedOut, model.Culture, model.TimeZoneId, model.PasswordQuestion, model.PasswordAnswer
                 , model.MembershipGroups, model.Profiles, model.Comment);
             resultData.RedirectUrl = @return;
         });
     }
     return Json(data);
 }
Example #2
0
 public virtual ActionResult Edit(string uuid)
 {
     var membershipUser = new MembershipUser() { Membership = Membership, UUID = uuid }.AsActual();
     var editModel = new EditMembershipUserModel(membershipUser);
     return View(editModel);
 }