Example #1
0
        public Task CreateEmployeeAsync(Employee employee)
        {
            var result = _dbContext.Employees.AddAsync(employee);

            _dbContext.SaveChanges();
            return(result);
        }
Example #2
0
        public Task AddOfficeAsync(Office office)
        {
            var result = _dbContext.Offices.AddAsync(office);

            _dbContext.SaveChanges();
            return(result);
        }