Esempio n. 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());
 }
Esempio n. 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());
 }