Ejemplo n.º 1
0
        public virtual ActionResult Profile(AccountProfileModel model)
        {
            this._userService.UpdateProfile(this.User.Identity.Name, model.Fullname, model.AboutMe, model.Website);

            return RedirectToAction(MVC.Thing.Give());
        }
Ejemplo n.º 2
0
        public virtual ActionResult Profile()
        {
            var user = this._userService.Get(this.User.Identity.Name);

            var model = new AccountProfileModel
            {
                Fullname = user.FullName,
                AboutMe = user.AboutMe,
                Website = user.Website
            };

            return View(model);
        }