public IActionResult update(Post post) { if (m.updatepost(post)) { return(View()); } ModelState.AddModelError(string.Empty, "not valid"); return(View()); }
public IActionResult update(Post post) { if (m.updatepost(post)) { return(View()); } ModelState.AddModelError(string.Empty, "not valid"); return(View()); }