public async Task <ProjectMembers> InsertProjectMember(Invitation invitation) { var newMember = new ProjectMembers { Project = invitation.Project, Member = invitation.For_Who, Role = (int)invitation.Role }; var inserted = await _projectMemberRepository.CreateNewProjectMember(newMember); return(inserted); }