Пример #1
0
        //public IList<tbl_AttributeValues> lstAttributeValues { get; set; }

        //public IList<tbl_Attribute> lstCriticalAttributes { get; set; }

        //public IList<tbl_Transactions> lstHighLevelTransactions { get; set; }

        #endregion

        public IList <ScenarioBuilderViewModel> GetTransactions(int?daId)
        {
            try
            {
                ScenarioBuilderViewModel sbVM           = new ScenarioBuilderViewModel();
                TransactionsManager      transManager   = new TransactionsManager();
                MappingManager           mappingmanager = new MappingManager();

                lstHighLevelTransactions = transManager.GetAllTransactions(daId);

                List <ScenarioBuilderViewModel> lstScenarioBuilderVM = new List <ScenarioBuilderViewModel>();

                sbVM.lstHighLevelTransactions = lstHighLevelTransactions;

                var transactionAttributeMapping = mappingmanager.GetMappingDetails(daId);

                for (int j = 0; j < transactionAttributeMapping.Count(); j++)
                {
                    ScenarioBuilderViewModel scenarioBuilderViewModel = new ScenarioBuilderViewModel();
                    scenarioBuilderViewModel.TransactionDesc = transactionAttributeMapping[j].tbl_Transactions.HighLevelTxnDesc;
                }

                lstScenarioBuilderVM.Add(sbVM);
                return(lstScenarioBuilderVM);
            }
            catch (Exception)
            {
                throw;
            }
        }