Webiant Logo Webiant Logo
  1. No results found.

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

ModelReceivedEvent.cs

using Microsoft.AspNetCore.Mvc.ModelBinding;

namespace Nop.Web.Framework.Events;

/// 
/// Represents an event that occurs after the model is received from the view
/// 
/// Type of the model
public partial class ModelReceivedEvent
{
    #region Ctor

    /// 
    /// Ctor
    /// 
    /// Model
    /// Model state
    public ModelReceivedEvent(T model, ModelStateDictionary modelState)
    {
        Model = model;
        ModelState = modelState;
    }

    #endregion

    #region Properties

    /// 
    /// Gets a model
    /// 
    public T Model { get; protected set; }

    /// 
    /// Gets a model state
    /// 
    public ModelStateDictionary ModelState { get; protected set; }

    #endregion
}