Exemplo n.º 1
0
        public virtual async Task <DataService <ExpandoObject> > MultipleReadCustomAsync <T>(string action, Dictionary <string, dynamic> parms, IEnumerable <MultipleDataEntry> mapItems)
        {
            var type = typeof(T);

            try
            {
                ExpandoObject ret = await _adapter.QueryMultiple(parms, DataHelper.StoreProcedure(type, action), mapItems, "", DataHelper.GetInstance(type));

                return(ret.FlushData());
            }
            catch (Exception ex)
            {
                return(ex.FatalException <ExpandoObject>());
            }
        }