title: MVC4: Access controller properties in partial view
body: <p>Is it possible to access the property of a base controller from a partial view?</p>
  
  <p>I have the following setup:</p>
  
  <pre><code>public class BaseController : Controller
  {
      private string ServerName
      {
          get
          {
              return Request.ServerVariables["SERVER_NAME"];
          }
      }
      private Entities.Client _Client { get; set; }
      public Entities.Client Client
      {
          get
          {
              return this._Client ?? (this._Client = this.HttpContext.Application["Client"] as Entities.Client);
          }
      }
      private Settings _Settings { get; set; }
      public Settings Settings
      {
          get
          {
  
              if (this._Settings == null)
              {
                  this._Settings = new Settings(this.Client, this.Client.WebPageTemplateCapabilities != null ? SettingsType.XML : SettingsType.SQL);
              }
  
              return this._Settings;
          }
      }
  }
  </code></pre>
  
  <p>All my controllers inherit BaseController, and in some of the views of the child actions of those controllers I render partial views. Is there any way to access BaseController.Settings from one of those partial views?</p>