예제 #1
0
        public async Task <IHttpActionResult> Post([FromBody] TaskItem taskItem)
        {
            int id = await _taskItemService.CreateAsync(taskItem : taskItem);

            return(CreatedAtRoute("GetTaskItem", routeValues: new { id }, content: taskItem));
        }