Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace COMP2614Assign05
- {
- // Class to hold a collection of SelectionList
- class ProvinceSelectionList : List<string>
- {
- // method that return a list of Provinces via CustomerRepository from the sql database
- public string Provinces(int index)
- {
- CustomerRepository province = new CustomerRepository();
- string provinces = province.GetProvince().ElementAt(index-1); // 0,1,2,3,4 > 1,2,3,4,5
- return provinces;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement