示例#1
0
        public IList <PageView> GetPageViews(Guid userId, int contractId)
        {
            var pageViews = new List <PageView>();

            try
            {
                var reader = QueryReader(null, _dbConnName, StoredProcedure.GetPageViews, userId, contractId);
                while (reader.Read())
                {
                    pageViews.Add(PageView.Build(reader));
                }
            }
            catch
            {
                //suppress error and return empty collection for now while developing infrastructure for this
                //TODO: handle this properly when everything is built out.
            }

            return(pageViews);
        }