예제 #1
0
        public ApiResult()
        {
            Result = true;
            //if (typeof(T).GetConstructor(Type.EmptyTypes) != null)
            //{
            //    Data = System.Activator.CreateInstance<T>();
            //}

            ErrorInfo = ErrorConfig.GetErrorInfo(ErrorCode.Success);
        }
예제 #2
0
 public ApiException(ErrorCode code)
 {
     Error = ErrorConfig.GetErrorInfo(code);
 }