Beispiel #1
0
        public async Task <IActionResult> OnPostDeleteColumn(long columnId)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            var column = await _service.DeleteColumn(columnId);

            return(RedirectToPage("/BoardPages/ViewBoard", new
            {
                id = column.Board.Id
            }));
        }