public Task AddEventAsync(DeviceEvent deviceEvent) { using (var context = new ApplicationDatabaseContext()) { context.DeviceEvents.Add(deviceEvent); return context.SaveChangesAsync(); } }
public Task AddEventAsync(DeviceEvent deviceEvent) { return this.deviceEventCommandStore.AddEventAsync(deviceEvent); }