Exemple #1
0
 public IActionResult OnPostDelete([FromBody] string[] ids)
 {
     foreach (var id in ids)
     {
         _sysRoleService.DeleteObject(_ => _.Id == id);
     }
     return(Ok(ids.Length));
 }
Exemple #2
0
        public IActionResult OnPostDelete(string[] ids)
        {
            foreach (var id in ids)
            {
                _sysRoleService.DeleteObject(_ => _.Id == id);
            }

            return(RedirectToPage("./Index"));
        }