title: Why Request is null in my controller?
body: <p>I call a a methode by HttpPost in my ServiceController from my View <code>http://localhost/Case/Form</code></p>
  
  <p>My serviceController class:</p>
  
  <pre><code>using System.Web;
  using System.Web.Mvc;
  [...]
  
  namespace ApnNephro.WebUI.Controllers
  {
      public class ServicesController : Controller
      {
          public string GetDomain()
          {
              string url = "";
              try
              {
                  string _url = Request.Url.AbsolutePath;
                  int _si = (_url.IndexOf("//"));
                  int _fi = (_url.Substring(_si + 2)).IndexOf("/"); // first /
                  url = _url.Substring(0, _fi + _si + 2);
                  return url.ToString();
              }
              catch (InvalidOperationException ioe)
              {
                  throw new Exception(ioe.Message + " / " + ioe.StackTrace);
              }
              catch (Exception e)
              {    
                  throw new Exception(e.Message + " / " + e.StackTrace);
              }
              return url.ToString();
          }
  
  [...]
  </code></pre>
  
  <p>And i call him in my MailHelper.cs :</p>
  
  <pre><code>private static string domain = new ServicesController().GetDomain();
  </code></pre>
  
  <p>But an exception occure because Request is null...</p>
  
  <p>So, my Question is, why Request is null ?
  Is it assigned only in the current view controller, so here in my CaseController only ?</p>