Пример #1
0
        public override void OnAuthorization(AuthorizationContext filterContext)
        {
            controller = filterContext.Controller as ApplicationController;

            base.OnAuthorization(filterContext);
        }
Пример #2
0
 public static string GetCommentByDisplayName(this TicketComment comment, ApplicationController controller)
 {
     return controller.Security.GetUserDisplayName(comment.CommentedBy);
 }
Пример #3
0
 public static string GetLastUpdateByDisplayName(this Ticket ticket, ApplicationController controller)
 {
     return controller.Security.GetUserDisplayName(ticket.LastUpdateBy);
 }
Пример #4
0
 public static string GetCurrentStatusByDisplayName(this Ticket ticket, ApplicationController controller)
 {
     return controller.Security.GetUserDisplayName(ticket.CurrentStatusSetBy);
 }
Пример #5
0
 public static string GetAssignedToDisplayName(this Ticket ticket, ApplicationController controller)
 {
     return controller.Security.GetUserDisplayName(ticket.AssignedTo);
 }
Пример #6
0
 public static string GetOwnerDisplayName(this Ticket ticket, ApplicationController controller)
 {
     return controller.Security.GetUserDisplayName(ticket.Owner);
 }