title: Calling static classes from controller
body: <p>I can call the static classes from a view (cshtml), but not from the controller, for example : </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  
  namespace TEST
  {
      public static class Tool
      {
          public static Dictionary&lt;string, string&gt; CreateHeadTailTable()
          {
              Dictionary&lt;string, string&gt; source =
                 new Dictionary&lt;string, string&gt;();
  
              for (int i = 0; i &lt; 10; i++)
              {
                  source.Add(i.ToString(), "");
              }
              return source;
          }
      }
  }
  </code></pre>
  
  <p>Now in the controller, I want to use the function, but I can't : </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  using TEST; 
  
  namespace TEST.Controllers
  {
      public class CityController : Controller
      {
          //
          // GET: /City/
  
          public string Index(string cityID)
          {
              if (string.IsNullOrEmpty(cityID) || cityID.Length &lt; 3)
                  return "error"; //RedirectToAction("Index", "Home");
  
              // **can call TEST.Tool.CreateHeadTailTable or Tool.CreateHeadTailTable here** 
  
              return "get " +  cityID.Substring(cityID.Length - 3, 3);
          }
  
      }
  }
  </code></pre>
  
  <p>But I can call the classes from views(cshtml) without any problems </p>