public IActionResult UpdateComplete(string id, string taskId, [FromBody] Complete value) { if (repository.CompleteTask(id, taskId, value.Completed)) { return(new StatusCodeResult(201)); } else { return(BadRequest()); } }