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.

1.1 KB
Raw Blame
using Grand.Domain.Messages;
using Grand.Web.AdminShared.Models.Messages;

namespace Grand.Web.AdminShared.Interfaces;

public interface IContactAttributeViewModelService
{
    Task<IEnumerable<ContactAttributeModel>> PrepareContactAttributeListModel();
    Task PrepareConditionAttributes(ContactAttributeModel model, ContactAttribute contactAttribute);
    Task<ContactAttribute> InsertContactAttributeModel(ContactAttributeModel model);
    Task<ContactAttribute> UpdateContactAttributeModel(ContactAttribute contactAttribute, ContactAttributeModel model);
    ContactAttributeValueModel PrepareContactAttributeValueModel(ContactAttribute contactAttribute);

    ContactAttributeValueModel PrepareContactAttributeValueModel(ContactAttribute contactAttribute,
        ContactAttributeValue contactAttributeValue);

    Task<ContactAttributeValue> InsertContactAttributeValueModel(ContactAttribute contactAttribute,
        ContactAttributeValueModel model);

    Task<ContactAttributeValue> UpdateContactAttributeValueModel(ContactAttribute contactAttribute,
        ContactAttributeValue contactAttributeValue, ContactAttributeValueModel model);
}