Exemplo n.º 1
0
 public ViewContext(ViewEngine viewEngine)
 {
     this._viewEngine    = viewEngine;
     this._configuration = viewEngine.ViewConfiguration;
     this._viewData      = new Dictionary <string, object>();
     this._viewModel     = null;
 }
Exemplo n.º 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;
 }