Esempio n. 1
0
        private List <SelectListItem> GetPurchaseTypesSelectList()
        {
            var repo = SaleRepoFactory.CreateSaleRepo();

            return((from type in repo.GetPurchaseMethods()
                    select new SelectListItem()
            {
                Text = type.PurchaseType,
                Value = type.PurchaseMethodId.ToString(),
            }).ToList());
        }
Esempio n. 2
0
        private List <SelectListItem> GetStatesSelectList()
        {
            var repo = SaleRepoFactory.CreateSaleRepo();

            return((from state in repo.GetStates()
                    select new SelectListItem()
            {
                Text = state.StateId,
                Value = state.StateId,
            }).ToList());
        }