Пример #1
0
        public async Task UpdateAsync(Project project)
        {
            var projectEntity = new ProjectEntity();

            projectEntity.InjectFrom(project);
            await _projectManagement.UpdateAsync(project.Id, projectEntity);
        }
Пример #2
0
        public async Task CreateProjectAsync(Project project)
        {
            var projectEntity = new ProjectEntity();

            projectEntity.InjectFrom(project);
            var createProjectRequest = new CreateProjectRequest(projectEntity, project.CreatorId);
            await _projectManagement.CreateProjectAsync(createProjectRequest);
        }