Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Business.Core.Interfaces.Authentication;
using Grand.Business.Core.Interfaces.Common.Directory;
using Grand.Business.Core.Interfaces.Common.Localization;
using Grand.Web.AdminShared.Controllers;
using Grand.Web.Common.Filters;
using Grand.Web.Vendor.Extensions;
using Microsoft.AspNetCore.Mvc;
namespace Grand.Web.Vendor.Controllers;
[AutoValidateAntiforgeryToken]
[Area(Constants.AreaVendor)]
[AuthorizeVendor]
[AuthorizeMenu]
public class HomeController : BaseHomeController
{
#region Ctor
public HomeController(
ICountryService countryService,
ITranslationService translationService,
IGrandAuthenticationService authenticationService,
ILogger<HomeController> logger)
: base(countryService, translationService, authenticationService)
{
_logger = logger;
}
#endregion
#region Fields
private readonly ILogger<HomeController> _logger;
#endregion
#region Methods
protected override string SelectStateResourceKey => "Vendor.Address.SelectState";
protected override string LogoutRouteName => "VendorLogin";
public IActionResult Index()
{
return View();
}
public IActionResult Statistics()
{
return View();
}
public IActionResult AccessDenied()
{
_logger.LogInformation("Access denied");
return View();
}
#endregion
}