title: How to use Global Variables in MVC3
body: <p>I've declare a class for GlobalVarables in model.cs, in the same model there is also one more class which represent my table in the database.</p>
  
  <pre><code>namespace Project.Models
  {
      [Table("REGIONS")]
      public class DBTable
      {
      // table columns{get;set;}
      }
  
      public static class MyViewModel
      {
          public static string vVar1{get; set;} 
          public static string vVar2{get; set;} 
      }
  </code></pre>
  
  <p>then papulate in Controller.</p>
  
  <pre><code>namespace Project.Controllers
  { 
      public class ProjectController : Controller
      {
          public ActionResult DisplayVariables(MyViewModel model)
          {
  
              model.Var1 = "testString";          
              return View(model);
          }
  
          ....
      }
  }
  </code></pre>
  
  <p>index.cshtml code here</p>
  
  <pre><code>@model IEnumerable&lt;sLightcSharp.Models.Region&gt;
  </code></pre>
  
  <p>how can I include second model</p>
  
  <pre><code>@model IEnumerable&lt;sLightcSharp.Models.MyViewModel&gt;
  </code></pre>
  
  <p>and how can I use Var1 variable in index.cshtml.</p>