public async Task <IActionResult> Put(int id, [FromBody] Project project) { try { if (project == null || project.Id != id) { return(BadRequest("Provide a valid project")); } await ProjectHandler.UpdateProjectAsync(id, project); this.logger.LogInformation($"Project { project.Name } updated successfully"); return(Ok($"Project { project.Name } updated successfully")); } catch (Exception ex) { this.logger.LogError(ex.Message); return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message)); } }