Webiant Logo Webiant Logo
  1. No results found.

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

ProductReviewModel.cs

using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

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

/// 
/// Represents a product review model
/// 
public partial record ProductReviewModel : BaseNopEntityModel
{
    #region Ctor

    public ProductReviewModel()
    {
        ProductReviewReviewTypeMappingSearchModel = new ProductReviewReviewTypeMappingSearchModel();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.Fields.Store")]
    public string StoreName { get; set; }
    public bool ShowStoreName { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.Fields.Product")]
    public int ProductId { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.Fields.Product")]
    public string ProductName { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.Fields.Customer")]
    public int CustomerId { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.Fields.Customer")]
    public string CustomerInfo { get; set; }

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

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

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

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.Fields.Rating")]
    public int Rating { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.Fields.IsApproved")]
    public bool IsApproved { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductReviews.Fields.CreatedOn")]
    public DateTime CreatedOn { get; set; }

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

    public ProductReviewReviewTypeMappingSearchModel ProductReviewReviewTypeMappingSearchModel { get; set; }

    #endregion
}