public ScheduledTaskDto(ScheduledTaskModel model)
 {
     UpdateScheduledTaskFromModel(model);
     TaskId = Guid.NewGuid();
 }
Exemple #2
0
 public static ScheduledTaskDto GetScheduledTask(ScheduledTaskModel scheduledTaskModel)
     => GetScheduledTask(scheduledTaskModel.TaskId);
        public ScheduledTaskDto UpdateScheduledTaskFromModel(ScheduledTaskModel model)
        {
            SyncOperation = model.SyncOperation;
            PartialSync = !model.SyncOperation.Equals(SyncOperation.All) && model.PartialSync;
            IsActive = model.IsActive;
            TimeScheduler = model.TimeScheduler;
            ManualTrigger = model.ManualTrigger;

            return this;
        }