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 })); }