public ActionResult GetUserProfile(EditProfileModel editProfileModel) { if (ModelState.IsValid) { var user = new User { LastName = editProfileModel.LastName, UserName = editProfileModel.FirstName, PhoneNumber = editProfileModel.PhoneNumber, Email = editProfileModel.Email, Id = editProfileModel.Id, Login = editProfileModel.Login, Role = (int)RolesEnum.Client, Status = (int)UserStatusEnum.Active, Password = editProfileModel.Password, DriverStatus = null, }; _userBl.UpdateUser(user); //Session["UserFullName"] = user.UserName + " " + user.LastName; return(RedirectToAction("Index", "Home")); } return(View(editProfileModel)); }