public bool Save(DeviceReading reading) { DocumentdbService <DeviceReading> service = new DocumentdbService <DeviceReading>(); // return service.CreateDatabase().Result; return(service.Create(reading)); }
public DeviceReading GetReading(string Id, string DeviceId) { DocumentdbService <DeviceReading> service = new DocumentdbService <DeviceReading>(); return(service.Get(Id, DeviceId)); }
public List <DeviceReading> GetAllReadings(string DeviceId) { DocumentdbService <DeviceReading> service = new DocumentdbService <DeviceReading>(); return(service.Get(DeviceId)); }
public bool SaveBatch(List <DeviceReading> entities) { DocumentdbService <DeviceReading> service = new DocumentdbService <DeviceReading>(); return(service.CreateDatabase().Result); }