public async Task <ReadingModel> Put(int id, [FromBody] ReadingModel readingIn)
        {
            var readingFromDb = await _readingsRepository.GetReading(readingIn.Id);

            if (readingFromDb == null)
            {
                Response.StatusCode = 404;
                return(null);
            }

            readingFromDb.Day            = readingIn.Day;
            readingFromDb.PowerUsed      = readingIn.PowerUsed;
            readingFromDb.SolarGenerated = readingIn.SolarGenerated;
            var readingResult = await _readingsRepository.UpdateReading(readingFromDb);

            return(readingResult);
        }