Example #1
0
 public IApiResult AuditPass(IdsArguent arg)
 {
     OnAuditPass();
     return(IsFailed
             ? ApiResultHelper.State(GlobalContext.Current.Status.LastState, GlobalContext.Current.Status.LastMessage)
             : ApiResultHelper.Succees());
 }
Example #2
0
        public IApiResult Validate(IdsArguent arg)
        {
            if (!RequestArgumentConvert.TryGetIDs("selects", Convert, out List <TPrimaryKey> ids))
            {
                return(ApiResultHelper.Helper.ArgumentError);
            }

            DoValidate(ids);
            return(IsFailed
                    ? ApiResultHelper.State(GlobalContext.Current.Status.LastState, GlobalContext.Current.Status.LastMessage)
                    : ApiResultHelper.Succees());
        }