public ActionResult <Project> FindProjectById(string id) { Task <Project> data = system.FindProjectById(id); if (data.IsCanceled) { return(BadRequest(data.Exception)); } else if (data.Result == null) { return(NoContent()); } else { return(Ok(data.Result)); } }