Пример #1
0
        public RedirectToRouteResult Save(ProfileEditModel form)
        {
            var profile = _profileRepository.Find(form.Username);

            profile.Email = form.Email;
            profile.FirstName = form.FirstName;
            profile.LastName = form.LastName;

            return RedirectToAction("Index");
        }