Ejemplo n.º 1
0
        private IDictionary <string, SubDistrictMaster> GetSubDistDict()
        {
            IDictionary <string, SubDistrictMaster> keyValues =
                new Dictionary <string, SubDistrictMaster>();

            foreach (SubDistrictMaster source in subDistrictService.FindAll())
            {
                keyValues.Add(source.SubDistrictName, source);
            }
            return(keyValues);
        }
Ejemplo n.º 2
0
 public IActionResult GetSubDistricts()
 {
     return(Ok(_subDistrictService.FindAll()));
 }