public async Task <ProjectPromoter> CreateProjectPromoter(ProjectPromoter promoter) { var newPromoter = await _context.ProjectPromoter.AddAsync(promoter); await _context.SaveChangesAsync(); return(newPromoter.Entity); }
public async Task <ProjectPromoter> InsertProjectPromoter(Invitation invitation) { var newProjectPromoter = new ProjectPromoter { Project = invitation.Project, User = invitation.For_Who }; var insertedPromoter = await _projectPromotersRepository.CreateProjectPromoter(newProjectPromoter); return(insertedPromoter); }