Exemplo n.º 1
0
        public async Task <IActionResult> UpdateTaskItemType(string boardId, TaskItemTypeDto type)
        {
            type.TaskBoardId = boardId;
            await _taskBoardService.UpdateTaskItemType(type);

            return(Json(new { message = "Task item type successfully updated" }));
        }
 public AddTaskItemTypeCommand(string boardId, TaskItemTypeDto type)
 {
     BoardId = boardId;
     Type    = type;
 }
Exemplo n.º 3
0
 public TaskItemTypeUpdatedEvent(TaskItemTypeDto type)
 {
     Type = type;
 }
Exemplo n.º 4
0
 public UpdateTaskItemTypeCommand(TaskItemTypeDto type)
 {
     Type = type;
 }
 public TaskItemTypeAddedEvent(TaskItemTypeDto type)
 {
     Type = type;
 }
Exemplo n.º 6
0
 public Task <TaskItemTypeDto> CreateTaskItemType(string boardId, TaskItemTypeDto type)
 {
     return(_taskBoardService.CreateTaskItemType(boardId, type));
 }
Exemplo n.º 7
0
 public Task UpdateTaskItemType(TaskItemTypeDto type)
 {
     return(_bus.SendCommand(new UpdateTaskItemTypeCommand(type)));
 }
Exemplo n.º 8
0
        public async Task <TaskItemTypeDto> CreateTaskItemType(string boardId, TaskItemTypeDto type)
        {
            await _bus.SendCommand(new AddTaskItemTypeCommand(boardId, type));

            return(await _taskBoardLogic.GetTaskItemTypeAsync(type.Id));
        }