Esempio n. 1
0
 public GetTasksOutput GetTasks(GetTasksInput input)
 {
     var users = _taskRepository.GetTasks(input.Name);
     return new GetTasksOutput()
     {
         Tasks = Mapper.Map<List<TaskDto>>(users)
     };
 }
Esempio n. 2
0
 public async Task CreateOrUpdateTasks(GetTasksInput input)
 {
     //await _taskRepository.InsertAsync(new Domain.Tasks.Task { Name = input.Name });
     EventBus.Trigger(new TaskCompletedEventData { TaskId = 1 });
 }