Exemplo n.º 1
0
        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 }));
        }