Esempio n. 1
0
        public List <T> RetriveAllBenefitsByCard <T>()
        {
            var allBenefitsByCard = new List <T>();

            var lstResult = dao.ExecuteQueryProcedure(_mapper.GetRetriveTipoTarjetasStatement());
            var dic       = new Dictionary <string, object>();

            if (lstResult.Count > 0)
            {
                var objs = _mapper.BuildObjects(lstResult, true);
                foreach (var c in objs)
                {
                    allBenefitsByCard.Add((T)Convert.ChangeType(c, typeof(T)));
                }
            }

            return(allBenefitsByCard);
        }