public IActionResult DeleteBoard(int id) { if (!ModelState.IsValid) { return(RedirectToAction("Index", "Home")); } _boardService.DeleteBoad(id); return(RedirectToAction("Index", "Home")); }