public async Task <IActionResult> CreateProject(ProjectDto projectDto)
 {
     if (projectDto == null)
     {
         return(BadRequest());
     }
     return(Ok(await _projectsService.CreateNewProject(projectDto)));
 }
Exemple #2
0
 public async Task <int> CreateNewProject(ProjectDto project)
 {
     return(await _projectService.CreateNewProject(project));
 }
 public async Task <IActionResult> Create([FromBody] NewProjectModel model) =>
 ModelResult(await _projectsService.CreateNewProject(model, CurrentUserId));
 public async ValueTask <ProjectReadDto> CreateProject([FromBody] ProjectSaveDto projectSaveDto)
 {
     return(await _projectsService.CreateNewProject(projectSaveDto));
 }