Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public TaskRequest(ApiBaseController controller)
     : base(controller.LISpMiner, new HttpContextWrapper(System.Web.HttpContext.Current))
 {
 }
Ejemplo n.º 3
0
 public UserChangeRequest(ApiBaseController controller)
     : base(new HttpContextWrapper(System.Web.HttpContext.Current))
 {
 }