public IActionResult StatusCreate(int id) { var userEdit1 = _usersRepository.GetUser(id); userEdit1.Status = user.Status; user = userEdit1; if (ModelState.IsValid) { var count = _usersRepository.EditUser(userEdit1); if (count > 0) { return(Redirect("/Profile/" + id)); } } return(Page()); }