Example #1
0
        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);
        }
Example #3
0
        public async Task <Invitation> AddInvitation(Invitation invitation)
        {
            await dbContext.Invitations.AddAsync(invitation);

            await dbContext.SaveChangesAsync();

            return(invitation);
        }
Example #4
0
        public async Task <Form> AddForm(Form form)
        {
            await dbContext.Forms.AddAsync(form);

            await dbContext.SaveChangesAsync();

            return(form);
        }
Example #5
0
        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);
        }
Example #7
0
        public async Task <Template> AddTemplate(Template template)
        {
            await dbContext.Templates.AddAsync(template);

            await dbContext.SaveChangesAsync();

            return(template);
        }