/// <summary>
 /// Method called when authorization occurs.
 /// </summary>
 /// <param name="filterContext">Contains information about the current request and action.</param>
 protected override void OnAuthorization(AuthorizationContext filterContext)
 {
     Owner      = _userAuthorization.GetOwner(filterContext.HttpContext, filterContext.RouteData);
     UrlService = UserUrlService.GetInstance(Owner);
     base.OnAuthorization(filterContext);
 }
 /// <summary>
 /// Gets the user.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 protected User GetUser(ControllerContext context)
 {
     return(_userAuthorization.GetOwner(context.HttpContext, context.RouteData));
 }