public async Task DeleteBackgroundEventAsync(string pidIn) { DBBackgroundEventsHistory backgroundEvent = new DBBackgroundEventsHistory() { BeaconPid = pidIn }; await _db.DeleteAsync(backgroundEvent); }
public async Task UpdateBackgroundEventAsync(string pidIn,BeaconEventType eventType) { int type = (int)eventType; DateTimeOffset eventTime = DateTimeOffset.Now; DBBackgroundEventsHistory backgroundEvent = new DBBackgroundEventsHistory() { BeaconPid = pidIn, EventTime = eventTime, EventType= type }; await _db.UpdateAsync(backgroundEvent); }
public async Task SaveBeaconBackgroundEvent(string pidIn,BeaconEventType triggerIn ) { int eventType = (int)triggerIn; DateTimeOffset eventTime = DateTimeOffset.Now; DBBackgroundEventsHistory actions = new DBBackgroundEventsHistory() { BeaconPid = pidIn, EventType = eventType, EventTime = eventTime }; await _db.InsertAsync(actions); }