title: MVC controller method for View with optional Guid Parameter
body: <p>I am trying to make a MVC view accessible from either directly going to that View from a menu or by clicking on a link that'll take me to that same view but with a parameter and with that particular links information instead of seeing a general page if I went straight to it.</p>
  
  <pre><code>public ActionResult Roles(Guid applicationId)
      {
          if (applicationId == Guid.Empty)
          {
              return View();
          }
  
          var application = new ApplicationStore().ReadForId(applicationId);
  
          return View(application);
      }
  </code></pre>
  
  <p>I know for optional parameters you I'd do something like Guid? in the parameters but visual studios doesn't like that and I can't do Guid application = null either.  Any Ideas?</p>