public async Task<JsonResult> GetWards(string data) {
     var context = new Election2015Context();
     var words = await context.Wards.Where(e => e.TS_Pcode == data).Select(e => new { value = e.Ward_Pcode, text = e.Word_Mya_Zawgyi}).ToListAsync();
     words.Insert(0, new { value = "", text = "--- ရပ္ကြက္ ေရြးပါ ---" });
     return Json(words);
 }
 public async Task<JsonResult> GetStates() {
     var context = new Election2015Context();
     var states = await context.States.Select(e => new { value = e.SR_Pcode, text = e.State_Region_Mya_ZawGyi }).ToListAsync();
     return Json(states);
 }
 public async Task<JsonResult> GetTownships(string data) {
     var context = new Election2015Context();
     var states = await context.Townships.Where(e => e.SR_Pcode == data).Select(e => new { value = e.TS_Pcode, text = e.Township_Mya_ZawGyi }).ToListAsync();
     return Json(states);
 }
 private async Task StoreStateInviewBag() {
     var context = new Election2015Context();
     var tmp = await context.States.Select(e => new { e.SR_Pcode, e.State_Region_Mya_ZawGyi }).ToListAsync();
     var states = tmp.Select(e => new KeyValuePair<string, string>(e.SR_Pcode, e.State_Region_Mya_ZawGyi)).ToList();
     ViewBag.States = states;
 }