예제 #1
0
 /// <summary>
 /// Get all district
 /// </summary>
 /// <returns>A list of districts</returns>
 public IEnumerable <District> GetAllDistrict()
 {
     return(Districts.getAll().Select(d => new District(d)).ToList());
 }
예제 #2
0
 /// <summary>
 /// get a list of districts
 /// </summary>
 /// <returns>A list of district in the system</returns>
 public IEnumerable <District> getDistricts()
 {
     return(Districts.getAll().Select(c => new District(c)).ToList());
 }