private void CancelChangeCore(CancelContentSchedule c, ContentOperation operation) { operation.MustHavePermission(Permissions.AppContentsChangeStatusCancel); if (Snapshot.ScheduleJob != null) { CancelChangeStatus(c); } }
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)); }