Пример #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);
        }
Пример #2
0
 public IActionResult GetSubDistricts()
 {
     return(Ok(_subDistrictService.FindAll()));
 }