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

            await _context.SaveChangesAsync();

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

            await _context.SaveChangesAsync();

            return(employee.Id);
        }
Beispiel #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);
        }