public async Task <Guid> CreateAsync(ProjectMemberDTO model) { var entity = new ProjectMember() { ProjectId = model.ProjectId, UserId = model.UserId, Role = model.Role, JoinDate = model.JoinDate }; await _projectMemberRepository.InsertAsync(entity); await _projectMemberRepository.SaveAsync(); return(entity.UserId); }