public async Task <IActionResult> PutTask(string id, TaskOpj item) { if (id != item.guid) { return(BadRequest()); } var isUpdated = await TaskManager.updateAsync(contentRootPath, item); //TODO: Check isUpdated return(NoContent()); }
public async Task <ActionResult <TaskOpj> > PostTask(TaskOpj item) { var obj = await TaskManager.createAsync(contentRootPath, item); return(CreatedAtAction(nameof(GetTask), new { id = obj.guid }, obj)); }