Esempio 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);
        }
Esempio n. 2
0
 public new ActionResult Profile(string username)
 {
     var vm = new UserProfileViewModel(username);
     return View(vm);
 }