Example #1
0
        public async Task Add(Employee employee)
        {
            ArgumentHelper.EnsureNotNull(nameof(employee), employee);

            employee.LastModified = DateTime.UtcNow;
            await _db.Employees.AddAsync(employee).ConfigureAwait(false);

            await _db.SaveChangesAsync().ConfigureAwait(false);
        }
Example #2
0
        public async Task Create(AttributeInfo attribute)
        {
            await _db.AttributeInfos.AddAsync(attribute).ConfigureAwait(false);

            await _db.SaveChangesAsync().ConfigureAwait(false);
        }