public IActionResult EditProfile(UserCreateModel userEdit) { var validator = new UserCreateValidator(); if (validator.Validate(userEdit).IsValid) { var accountBL = new AccountBL(_uow, _mapper); if (accountBL.EditProfile(userEdit)) { return(RedirectToAction("AccountPage")); } } return(View(userEdit)); }