Exemplo n.º 1
0
        private void CancelChangeCore(CancelContentSchedule c, ContentOperation operation)
        {
            operation.MustHavePermission(Permissions.AppContentsChangeStatusCancel);

            if (Snapshot.ScheduleJob != null)
            {
                CancelChangeStatus(c);
            }
        }
Exemplo n.º 2
0
        public async Task <IActionResult> DeleteContentStatus(string app, string schema, DomainId id)
        {
            var command = new CancelContentSchedule {
                ContentId = id
            };

            var response = await InvokeCommandAsync(command);

            return(Ok(response));
        }