//
 // GET: /AddressBank/
 public async Task<ActionResult> _GetBankByCityMathod(string city, string country, string bank)
 {
     AddressForBankBinder binder = new AddressForBankBinder();
    // if(bank==null){
         var res = await binder.BindData(city, country);
         return PartialView(res);
    /* }else{
         string banks = bank;
          var res = await binder.BindDataByBank(city, country,banks);
          return PartialView(res);
     }*/
     
 }
        public async Task<List<AddressModelForBanks>> Get(string city, string country){
            AddressForBankBinder binder = new AddressForBankBinder();
            var res = await binder.BindData(city, country);

            return null;
        }
Beispiel #3
0
 public async Task<ActionResult> GetBankByCityMathod(string city,string country)
 {
     AddressForBankBinder binder = new AddressForBankBinder(); 
     var res = await binder.BindData(city, country);
     return View(res);
 }
 public IEnumerable<AddressModelForBanks> Get(string city, string country)
 {
     AddressForBankBinder binder = new AddressForBankBinder();
     var res = binder.BindData(city, country);
     return res;
 }