Пример #1
0
        public List <T> RetriveAllBenefits <T>()
        {
            var retriveAllBenefits = new List <T>();

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

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

            return(retriveAllBenefits);
        }