Ejemplo n.º 1
0
        public new ActionResult Profile(string username, ProfilePropertyInputModel[] profileValues)
        {
            var vm = new UserProfileViewModel(username, profileValues);

            if (vm.UpdateProfileFromValues(ModelState))
            {
                TempData["Message"] = Resources.UserController.ProfileUpdated;
                return RedirectToAction("Profile", new { username });
            }

            return View(vm);
        }
Ejemplo n.º 2
0
 public new ActionResult Profile(string username)
 {
     var vm = new UserProfileViewModel(username);
     return View(vm);
 }