using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc.Rendering; using Nop.Core.Domain.Orders; using Nop.Web.Framework.Models; using Nop.Web.Framework.Mvc.ModelBinding; namespace Nop.Web.Areas.Admin.Models.ShoppingCart; /// /// Represents a shopping cart search model /// public partial record ShoppingCartSearchModel : BaseSearchModel { #region Ctor public ShoppingCartSearchModel() { AvailableShoppingCartTypes = new List(); ShoppingCartItemSearchModel = new ShoppingCartItemSearchModel(); AvailableStores = new List(); AvailableCountries = new List(); } #endregion #region Properties [NopResourceDisplayName("Admin.ShoppingCartType.ShoppingCartType")] public ShoppingCartType ShoppingCartType { get; set; } [NopResourceDisplayName("Admin.ShoppingCartType.StartDate")] [UIHint("DateNullable")] public DateTime? StartDate { get; set; } [NopResourceDisplayName("Admin.ShoppingCartType.EndDate")] [UIHint("DateNullable")] public DateTime? EndDate { get; set; } [NopResourceDisplayName("Admin.ShoppingCartType.Product")] public int ProductId { get; set; } [NopResourceDisplayName("Admin.ShoppingCartType.BillingCountry")] public int BillingCountryId { get; set; } [NopResourceDisplayName("Admin.ShoppingCartType.Store")] public int StoreId { get; set; } public IList AvailableShoppingCartTypes { get; set; } public ShoppingCartItemSearchModel ShoppingCartItemSearchModel { get; set; } public IList AvailableStores { get; set; } public IList AvailableCountries { get; set; } public bool HideStoresList { get; set; } #endregion }