// GET: api/MinMaxSpeed
        public JsonResult <MinMaxSpeedModel> Get(DateTime date)
        {
            if (IsRequestCanBeProcessed())
            {
                // Create data request object
                var dataRequest = new DataRequest()
                {
                    RequestType = String.Format(MIN_MAX_SPEED_NOTES_DATA_REQUEST_TEMPLATE, date),
                    RequestDate = DateTime.Now
                };

                // Save information about current data request
                _dataRequestsRepository.SaveDataRequest(dataRequest);

                // Get model with information about min and max speed
                MinMaxSpeedModel modelToReturn = _speedNotesProcessor.GetMinMaxSpeedSpeedRegistrationNotes(date);

                return(new JsonResult <MinMaxSpeedModel>(
                           modelToReturn, new JsonSerializerSettings(), Encoding.Unicode, this));
            }

            return(null);
        }
        // GET: api/Speed
        public JsonResult <SpeedRegistrationNote[]> Get(double limit, DateTime date)
        {
            if (IsRequestCanBeProcessed())
            {
                // Create data request object
                var dataRequest = new DataRequest()
                {
                    RequestType = String.Format(LIMIT_EXCEEDING_NOTES_DATA_REQUEST_TEMPLATE, limit, date),
                    RequestDate = DateTime.Now
                };

                // Save information about current data request
                _dataRequestsRepository.SaveDataRequest(dataRequest);

                // Get notes with limit violations
                SpeedRegistrationNote[] limitExceedingNotes =
                    _speedNotesProcessor.GetSpeedLimitExceedingSpeedRegistrationNotes(limit, date);

                return(new JsonResult <SpeedRegistrationNote[]>(
                           limitExceedingNotes, new JsonSerializerSettings(), Encoding.Unicode, this));
            }

            return(null);
        }