public IActionResult profile(User user) { if (m.updateprofile(user)) { return(View()); } ModelState.AddModelError(string.Empty, "not valid"); return(View()); }