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()); }
private List <SelectListItem> GetStatesSelectList() { var repo = SaleRepoFactory.CreateSaleRepo(); return((from state in repo.GetStates() select new SelectListItem() { Text = state.StateId, Value = state.StateId, }).ToList()); }