예제 #1
0
        public async Task <IActionResult> Register(CreateTaskInput Input)
        {
            var output = await _taskAppService.AddTask(Input);

            return(View("TaskList"));
        }
예제 #2
0
        public async Task <IActionResult> CreateAsync([FromBody] AddTaskCommand command)
        {
            var response = await _taskAppService.AddTask(command);

            return(CreateResponseOnPost(response, RouteResponseConsts.Task));
        }