public async Task <IActionResult> CreateAsync([FromBody] ProjectDto newProject) { Project project = await _engineService.AddProjectAsync(newProject.Id, newProject.SourceLanguageTag, newProject.TargetLanguageTag, newProject.SourceSegmentType, newProject.TargetSegmentType, newProject.IsShared); if (project == null) { return(StatusCode(409)); } ProjectDto dto = CreateDto(project); return(Created(dto.Href, dto)); }