Exemplo n.º 1
0
        public async Task <int> Add(Department entity)
        {
            var entityEntry = await _context.AddAsync(entity);

            await _context.SaveChangesAsync();

            return(entityEntry.Entity.Id);
        }
Exemplo n.º 2
0
        public async Task <string> Add(Employee entity)
        {
            var entityEntry = await _context.AddAsync(entity);

            await _context.SaveChangesAsync();

            return(entityEntry.Entity.Id);
        }