public SensorReadingResponse SubmitSensorReading(SensorReadingRequest request)
        {
            bool success = request.DateSampled > DateTime.MinValue && !string.IsNullOrEmpty(request.Name);

            try
            {
                if (success)
                {
                    var sensorReading = new SensorReading
                    {
                        DateSampled = request.DateSampled,
                        Reading = request.Value,
                        Name = request.Name
                    };

                    new GenericTableSource<SensorReading>().AddEntry(sensorReading);

                    success = true;
                }
            }
            catch
            {
                success = false;
            }

            return new SensorReadingResponse
            {
                Success = success
            };
        }
 public SensorReadingResponse SubmitSensorReading(SensorReadingRequest request)
 {
     return WebRole.UnityContainer.Resolve<IMonitorCollectionService>().SubmitSensorReading(request);
 }