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.Data;
using Grand.Domain.Configuration;
namespace Grand.Module.Installer.Extensions;
public static class SettingExtensions
{
public static async Task SaveSetting<T>(this IRepository<Setting> repository, T settings, string storeId = "") where T : ISettings, new()
{
var setting = Domain.Configuration.SettingExtensions.CreateSetting<T>(settings, storeId);
await repository.InsertAsync(setting);
}
}