public virtual IActionResult DeleteSelected(ICollection <int> selectedIds) { if (!_permissionService.Authorize(StandardPermissionProvider.ManageServices)) { return(AccessDeniedView()); } if (selectedIds != null) { _shiftService.DeleteShift(_shiftService.GetByIds(selectedIds.ToArray())); } return(Json(new { Result = true })); }