Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

BestsellerSearchModel.cs

using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Reports;

/// 
/// Represents a bestseller search model
/// 
public partial record BestsellerSearchModel : BaseSearchModel
{
    #region Ctor

    public BestsellerSearchModel()
    {
        AvailableStores = new List();
        AvailableOrderStatuses = new List();
        AvailablePaymentStatuses = new List();
        AvailableCategories = new List();
        AvailableManufacturers = new List();
        AvailableCountries = new List();
        AvailableVendors = new List();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Reports.Sales.Bestsellers.StartDate")]
    [UIHint("DateNullable")]
    public DateTime? StartDate { get; set; }

    [NopResourceDisplayName("Admin.Reports.Sales.Bestsellers.EndDate")]
    [UIHint("DateNullable")]
    public DateTime? EndDate { get; set; }

    [NopResourceDisplayName("Admin.Reports.Sales.Bestsellers.Store")]
    public int StoreId { get; set; }

    [NopResourceDisplayName("Admin.Reports.Sales.Bestsellers.OrderStatus")]
    public int OrderStatusId { get; set; }

    [NopResourceDisplayName("Admin.Reports.Sales.Bestsellers.PaymentStatus")]
    public int PaymentStatusId { get; set; }

    [NopResourceDisplayName("Admin.Reports.Sales.Bestsellers.Category")]
    public int CategoryId { get; set; }

    [NopResourceDisplayName("Admin.Reports.Sales.Bestsellers.Manufacturer")]
    public int ManufacturerId { get; set; }

    [NopResourceDisplayName("Admin.Reports.Sales.Bestsellers.BillingCountry")]
    public int BillingCountryId { get; set; }

    [NopResourceDisplayName("Admin.Reports.Sales.Bestsellers.Vendor")]
    public int VendorId { get; set; }

    public IList AvailableStores { get; set; }

    public IList AvailableOrderStatuses { get; set; }

    public IList AvailablePaymentStatuses { get; set; }

    public IList AvailableCategories { get; set; }

    public IList AvailableManufacturers { get; set; }

    public IList AvailableCountries { get; set; }

    public IList AvailableVendors { get; set; }

    public bool IsLoggedInAsVendor { get; set; }

    #endregion
}