Ejemplo 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());
        }
Ejemplo 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());
        }