public async Task <IActionResult> Register(CreateTaskInput Input) { var output = await _taskAppService.AddTask(Input); return(View("TaskList")); }
public async Task <IActionResult> CreateAsync([FromBody] AddTaskCommand command) { var response = await _taskAppService.AddTask(command); return(CreateResponseOnPost(response, RouteResponseConsts.Task)); }