Esempio n. 1
0
        public override OutputData DoAction(IInputData input)
        {
            using (SqlSelector selector = new SqlSelector(Context, DataSet))
            {
                foreach (var item in fSqlList)
                {
                    selector.Select(item.Item2, item.Item1);
                }
            }
            if (UseCallerInfo)
            {
                input.CallerInfo.AddInfo(DataSet);
            }

            string message = SuccessMessage ?? string.Empty;

            ActionResultData.CreateSuccessResult(message).AddToDataSet(DataSet);
            return(OutputData.Create(DataSet));
        }
Esempio n. 2
0
 public WebSuccessResult(string message)
 {
     Result = ActionResultData.CreateSuccessResult(message);
 }