Exemple #1
0
        public bool Save(DeviceReading reading)
        {
            DocumentdbService <DeviceReading> service = new DocumentdbService <DeviceReading>();

            // return service.CreateDatabase().Result;
            return(service.Create(reading));
        }
Exemple #2
0
        public DeviceReading GetReading(string Id, string DeviceId)
        {
            DocumentdbService <DeviceReading> service = new DocumentdbService <DeviceReading>();

            return(service.Get(Id, DeviceId));
        }
Exemple #3
0
        public List <DeviceReading> GetAllReadings(string DeviceId)
        {
            DocumentdbService <DeviceReading> service = new DocumentdbService <DeviceReading>();

            return(service.Get(DeviceId));
        }
Exemple #4
0
        public bool SaveBatch(List <DeviceReading> entities)
        {
            DocumentdbService <DeviceReading> service = new DocumentdbService <DeviceReading>();

            return(service.CreateDatabase().Result);
        }