Пример #1
0
 /// <summary>The cethod thecks user authorization and set it values to the ViewBag.</summary>
 /// <exception cref="AuthenticationException">Is unauthorizad user</exception>
 protected void CheckUserAuthorization()
 {
     _UserStateManager.CheckUserAccess(Request, Response);
     ViewBag.Logged   = true;
     ViewBag.UserName = BaseBindings.CookiesManager.GetCookieValue(
         Request,
         CookieType.UserName);
 }