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