public IActionResult OnPostDelete(string[] ids) { foreach (var id in ids) { _catalogService.DeleteObject(_ => _.Id == Convert.ToInt32(id)); } return(RedirectToPage("./Index")); }