Esempio n. 1
0
        public async Task <Guid> Create(Company company)
        {
            await _context.AddAsync(company);

            await _context.SaveChangesAsync();

            return(company.Id);
        }
Esempio n. 2
0
        public async Task <Guid> Create(Hire employee)
        {
            await _context.AddAsync(employee);

            await _context.SaveChangesAsync();

            return(employee.Id);
        }
Esempio n. 3
0
        public async Task <Guid> Create(Vacancy vacancy)
        {
            await _context.AddAsync(vacancy);

            await _context.SaveChangesAsync();

            return(vacancy.Id);
        }
        public async Task <Guid> Create(Team team)
        {
            await _context.AddAsync(team);

            await _context.SaveChangesAsync();

            return(team.Id);
        }