Exemple #1
0
 public ViewContext(ViewEngine viewEngine)
 {
     this._viewEngine    = viewEngine;
     this._configuration = viewEngine.ViewConfiguration;
     this._viewData      = new Dictionary <string, object>();
     this._viewModel     = null;
 }
Exemple #2
0
 public ViewContext(ViewEngine viewEngine, object viewModel, IDictionary <string, object> viewData)
 {
     this._viewEngine    = viewEngine;
     this._configuration = viewEngine.ViewConfiguration;
     this._viewData      = viewData;
     this._viewModel     = viewModel;
 }