Skip to content

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.

538 B
Raw Blame
using Grand.Domain.Catalog;

namespace Grand.Module.Installer.Services;

public partial class InstallationService
{
    protected virtual Task InstallCollectionLayouts()
    {
        var collectionLayouts = new List<CollectionLayout> {
            new() {
                Name = "Grid or Lines",
                ViewPath = "CollectionLayout.GridOrLines",
                DisplayOrder = 1
            }
        };
        collectionLayouts.ForEach(x => _collectionLayoutRepository.Insert(x));
        return Task.CompletedTask;
    }
}