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