public async Task <Team> AddTeam(Team team) { await dbContext.Teams.AddAsync(team); await dbContext.SaveChangesAsync(); return(team); }
public async Task <Company> AddCompany(Company company) { await dbContext.Companies.AddAsync(company); await dbContext.SaveChangesAsync(); return(company); }
public async Task <Invitation> AddInvitation(Invitation invitation) { await dbContext.Invitations.AddAsync(invitation); await dbContext.SaveChangesAsync(); return(invitation); }
public async Task <Form> AddForm(Form form) { await dbContext.Forms.AddAsync(form); await dbContext.SaveChangesAsync(); return(form); }
public async Task <Person> AddPerson(Person person) { await dbContext.AddAsync(person); await dbContext.SaveChangesAsync(); return(person); }
public async Task <Report> AddReport(Report report) { await dbContext.Reports.AddAsync(report); await dbContext.SaveChangesAsync(); return(report); }
public async Task <Template> AddTemplate(Template template) { await dbContext.Templates.AddAsync(template); await dbContext.SaveChangesAsync(); return(template); }