public ApiResult() { Result = true; //if (typeof(T).GetConstructor(Type.EmptyTypes) != null) //{ // Data = System.Activator.CreateInstance<T>(); //} ErrorInfo = ErrorConfig.GetErrorInfo(ErrorCode.Success); }
public ApiException(ErrorCode code) { Error = ErrorConfig.GetErrorInfo(code); }