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.Infrastructure.Models;
using Grand.Web.AdminShared.Models.Directory;
using Grand.Web.Common.Models;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace Grand.Web.AdminShared.Models.Shipping;
public class ShippingMethodRestrictionModel : BaseModel
{
public IList<ShippingMethodModel> AvailableShippingMethods { get; set; } = new List<ShippingMethodModel>();
public IList<CountryModel> AvailableCountries { get; set; } = new List<CountryModel>();
public IList<CustomerGroupModel> AvailableCustomerGroups { get; set; } = new List<CustomerGroupModel>();
public string StoreId { get; set; }
public IList<SelectListItem> AvailableStores { get; set; } = new List<SelectListItem>();
//[country id] / [shipping method id] / [restricted]
public IDictionary<string, IDictionary<string, bool>> Restricted { get; set; } =
new Dictionary<string, IDictionary<string, bool>>();
public IDictionary<string, IDictionary<string, bool>> RestictedGroup { get; set; } =
new Dictionary<string, IDictionary<string, bool>>();
}