Beispiel #1
0
 public void FillByNewTask(NewTaskToWork newTask)
 {
     this.HandlerId = newTask.HandlerId;
     //this.DateOfCreated = newTask.DateOfCreated;
     this.StartIn = newTask.StartIn;
     this.Recycle = newTask.Recycle;
 }
Beispiel #2
0
        public async Task AddTaskAsync(NewTaskToWork newTask)
        {
            var tsk = new TaskToWork();

            tsk.FillByNewTask(newTask);
            tsk.DateOfCreated = DateTime.Now;
            tsk.Status        = TaskToWorkStatus.NotHandling;
            await AddTaskAsync(tsk);
        }