public async Task <IActionResult> Create(ShellTemperatureRecord record)
        {
            try
            {
                if (!record.RecordedDateTime.HasValue)
                {
                    record.RecordedDateTime = DateTime.Now;
                }

                ShellTemp shellTemp = new ShellTemp(record.Id, record.Temperature, (DateTime)record.RecordedDateTime, record.Latitude, record.Longitude, record.DeviceInfo);
                bool      result    = await _shellTempRepository.Create(shellTemp);

                if (!result)
                {
                    return(BadRequest());
                }

                return(Ok());
            }
            catch (ArgumentNullException ex)
            {
                return(BadRequest());
            }
        }
        public async Task <bool> Create(ShellTemp model)
        {
            bool created = _shellTemperatureRepository.Create(model);

            return(await Task.FromResult(created));
        }