Webiant Logo Webiant Logo
  1. No results found.

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

ProductReviewSearchModel.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.Catalog;

/// 
/// Represents a product review search model
/// 
public partial record ProductReviewSearchModel : BaseSearchModel
{
    #region Ctor

    public ProductReviewSearchModel()
    {
        AvailableStores = new List();
        AvailableApprovedOptions = new List();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.CreatedOnFrom")]
    [UIHint("DateNullable")]
    public DateTime? CreatedOnFrom { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.CreatedOnTo")]
    [UIHint("DateNullable")]
    public DateTime? CreatedOnTo { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchText")]
    public string SearchText { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchStore")]
    public int SearchStoreId { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchProduct")]
    public int SearchProductId { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchApproved")]
    public int SearchApprovedId { get; set; }

    //vendor
    public bool IsLoggedInAsVendor { get; set; }

    public IList AvailableStores { get; set; }

    public IList AvailableApprovedOptions { get; set; }

    public bool HideStoresList { get; set; }

    #endregion
}