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.Domain.Orders;
using Grand.Web.AdminShared.Models.Orders;
namespace Grand.Web.AdminShared.Interfaces;
public interface IGiftVoucherViewModelService
{
GiftVoucherListModel PrepareGiftVoucherListModel();
Task<GiftVoucherModel> PrepareGiftVoucherModel(GiftVoucherModel model = null);
Task<(IEnumerable<GiftVoucherModel> giftVoucherModels, int totalCount)> PrepareGiftVoucherModel(
GiftVoucherListModel model, int pageIndex, int pageSize, string storeId = "");
Task<GiftVoucherModel> FillGiftVoucherModel(GiftVoucher giftVoucher, GiftVoucherModel model);
Task NotifyRecipient(GiftVoucher giftVoucher);
Task<Order> GetOrderFromGiftVoucher(GiftVoucher giftVoucher);
Task<GiftVoucher> InsertGiftVoucherModel(GiftVoucherModel model);
Task<GiftVoucher> UpdateGiftVoucherModel(GiftVoucher giftVoucher, GiftVoucherModel model);
Task DeleteGiftVoucher(GiftVoucher giftVoucher);
Task<GiftVoucherModel> PrepareGiftVoucherModel(GiftVoucher giftVoucher);
Task<(IEnumerable<GiftVoucherModel.GiftVoucherUsageHistoryModel> giftVoucherUsageHistoryModels, int totalCount)>
PrepareGiftVoucherUsageHistoryModels(GiftVoucher giftVoucher, int pageIndex, int pageSize);
}