コード例 #1
0
        public static List<ConfiguredShowDto> GetConfiguredShow()
        {
            var moduleSettings = ModuleConfig.GetSettings();
            var showsList = new List<ConfiguredShowDto>();
            try
            {
                var shows = new Data.Shows(moduleSettings);
                var ds = shows.GetConfiguredShows();
                showsList.AddRange(from DataRow row in ds.Tables[0].Rows select new ConfiguredShowDto
                {
                    ShowId = Convert.ToInt32(row["ShowId"]),
                    ShowName = Convert.ToString(row["Name"]),
                    ShowDetailsId = Convert.ToInt32(row["ShowDetailId"]),
                    ShowDate = Convert.ToDateTime(row["ShowDate"])
                });
            }
            catch (Exception e)
            {
                AppException.LogEvent("GetConfiguredShow:" + e.Message + " " + e.StackTrace);

                throw;
            }
            return showsList;
        }