public async Task Invoke(HttpContext httpContext, IBritishProverbsContext proverbsContext)
 {
     try
     {
         await proverbsContext.RecordVisitAsync(httpContext.Connection.RemoteIpAddress?.ToString());
     }
     catch(Exception ex)
     {
         _logger.LogError("Failed while recording the visit.", ex);
     }
     finally
     {
         await _next(httpContext);
     }
 }
 public HomeController(IBritishProverbsContext context)
 {
     _context = context;
 }
 public VisitsController(IBritishProverbsContext context)
 {
     _context = context;
 }