public async Task <ActionResult> Remove(int id)
        {
            var user = await _context
                       .Users
                       .FirstOrDefaultAsync(u => u.UserId == id);

            if (user != null)
            {
                _context.Remove(user);

                await _context.SaveChangesAsync();

                return(new OkResult());
            }

            return(new BadRequestResult());
        }
        public async Task <ActionResult <Reading> > DeleteByID(Guid id, CancellationToken cancellationToken)
        {
            var reading = await _context
                          .Readings
                          .FirstOrDefaultAsync(_reading => _reading.ReadingId == id, cancellationToken);

            if (reading == null)
            {
                return(new NotFoundResult());
            }

            _context.Remove(reading);

            await _context.SaveChangesAsync(cancellationToken);

            return(new OkResult());
        }