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); }
public async Task Create(AttributeInfo attribute) { await _db.AttributeInfos.AddAsync(attribute).ConfigureAwait(false); await _db.SaveChangesAsync().ConfigureAwait(false); }