Example #1
0
        private static T GetControllerAttribute <T>(ApiBaseController controller) where T : Attribute
        {
            Type type = controller.GetType();

            object[] attributes = type.BaseType.GetCustomAttributes(typeof(T), true);
            T        attribute  = attributes.Count() == 0 ? null : (T)attributes[0];

            return(attribute);
        }
Example #2
0
 public TaskRequest(ApiBaseController controller)
     : base(controller.LISpMiner, new HttpContextWrapper(System.Web.HttpContext.Current))
 {
 }
Example #3
0
 public UserChangeRequest(ApiBaseController controller)
     : base(new HttpContextWrapper(System.Web.HttpContext.Current))
 {
 }