public IActionResult OnPostDelete([FromBody] string[] ids) { foreach (var id in ids) { _sysRoleService.DeleteObject(_ => _.Id == id); } return(Ok(ids.Length)); }
public IActionResult OnPostDelete(string[] ids) { foreach (var id in ids) { _sysRoleService.DeleteObject(_ => _.Id == id); } return(RedirectToPage("./Index")); }