title: C# web api Request if sometimes coming back null
body: <p>so I have inherited this app, it is angular / .Net,
  out api Controllers all inherit from a base controller</p>
  <pre><code>  [AllowAnonymous]
    public class BaseController : ApiController
    {
      protected static readonly int JwtTimeout = Convert.ToInt32(ConfigurationManager.AppSettings[&quot;JwtTimeout&quot;]);
      protected static readonly string authHeader = &quot;Authorization&quot;;
      protected readonly DateTime currentTime;
      protected readonly IEmailCommonService emailService;
      public int UserId { get; set; }
      private readonly IUserService currentUserService;
  public BaseController(IEmailCommonService _emailService,
        IUserService _currentUserService)
      {
        currentTime = DateTime.Now;
        emailService = _emailService;
        currentUserService = _currentUserService;
      }
  
  public User CurrentUser
      {
        get
        {
          try
          {
  /// here is where i get a null Request
            User requestUser = JwtToUser.GetUser(this.Request);
            this.UserId = requestUser.Id;
            return requestUser;
          }
  
          catch (Exception ex)
          {
            return null;
          }
        }
      }
  }
  </code></pre>
  <p>The angular uses an injector to push a JWT into each request
  but as I said I sometimes get a request that is null</p>