public async Task <IActionResult> Post([FromBody] Project project) { try { if (project == null) { this.logger.LogInformation("Provide valid task item detail"); return(BadRequest()); } await ProjectHandler.AddProjectAsync(project); this.logger.LogInformation($"Task {project.Id} created successfully"); return(Ok(project.Id)); } catch (Exception ex) { this.logger.LogError(ex.Message); return(StatusCode((int)HttpStatusCode.InternalServerError, "Please try again later")); } }