/// <summary> /// Initializes a new instance of the <see cref="BaseViewModel"/> class. /// </summary> /// <param name="controller"> /// The controller. /// </param> /// <param name="page"> /// The page. /// </param> protected BaseViewModel(BaseController controller, int?page) { this.SetController(controller, page); }
/// <summary> /// Initializes a new instance of the <see cref="BaseViewModel"/> class. /// </summary> /// <param name="controller"> /// The controller. /// </param> protected BaseViewModel(BaseController controller) { this.SetController(controller); }
/// <summary> /// The set controller. /// </summary> /// <param name="baseController"> /// The base controller. /// </param> public virtual void SetController(BaseController baseController) { this.controller = baseController; }
/// <summary> /// The set controller. /// </summary> /// <param name="baseController"> /// The base controller. /// </param> /// <param name="page"> /// The page. /// </param> public virtual void SetController(BaseController baseController, int?page) { this.controller = baseController; this.page = page; }
/// <summary> /// Initializes a new instance of the <see cref="HomeViewModel"/> class. /// </summary> /// <param name="baseController"> /// The base controller. /// </param> public HomeViewModel(BaseController baseController) : base(baseController) { }