public ActionResult ChangePassword()
 {
     EditUserInfo info = new EditUserInfo();
     info.Email = SecurityUtility.CurrentUser.Email;
     return View(info);
 }
        public ActionResult ChangePassword(string password)
        {
            try
            {
                userService.ChangePassword(this.CurrentUser.Email, password);
                return RedirectToAction("Index", "Content");
            }
            catch (Exception ex)
            {
                ModelState.AddBusinessError(ex.Message);
                logger.Error(ex);
            }

            EditUserInfo info = new EditUserInfo();
            info.Email = SecurityUtility.CurrentUser.Email;
            return RedirectToActionWithError("ChangePassword", info);
        }
 private EditUserInfo InitializeEditUserInfo(EditUserInfo info)
 {
     IList<Group> groups = userService.GetAllGroups();
     info.Groups = groups.Select(g => new SelectListItem() { Text = g.Name, Value = g.Id.ToString() }).ToList<SelectListItem>();
     return info;
 }