Esempio n. 1
0
        public IActionResult DeleteBoard(int id)
        {
            if (!ModelState.IsValid)
            {
                return(RedirectToAction("Index", "Home"));
            }

            _boardService.DeleteBoad(id);

            return(RedirectToAction("Index", "Home"));
        }