- Refactored `BuyController` for improved click logging and centralized link management. - Updated `DiscoveryController` to enhance user request handling and added country context dependency. - Introduced `ClicksController` for managing click tracking and redirects. - Added `GeoResolutionMiddleware` to resolve user locations based on IP. - Created `BuyCatalog` for centralized management of buy links. - Introduced view models (`BuyLinksViewModel`, `DiscoveryPageViewModel`) for better data handling in views. - Added new files for geographical data handling (`GeoIpResult`, `HttpContextItemKeys`, `LinkChoice`, etc.). - Updated `_BuyBox.cshtml` to render buy options based on user location. - Modified `DataAccess` for saving and retrieving geographical data.
13 lines
232 B
C#
13 lines
232 B
C#
namespace CatherineLynwood.Services
|
|
{
|
|
public interface ICountryContext
|
|
{
|
|
#region Public Properties
|
|
|
|
string? CountryName { get; }
|
|
|
|
string? Iso2 { get; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |