//
        // GET: /Calculator/
        public ActionResult _CalculateMethod(double rate, string currency1,string currency2,string bank)
        {
            CalculateBinder binder = new CalculateBinder();
            var res = binder.BindData(currency1,bank);
            double a = res.FirstOrDefault().Rate;

            double result = a * rate;
             ViewBag.Head=result;
            return PartialView(res);
        }
 //
 // GET: /Calculator/
 public ActionResult _CalculateMethod(double rate, string currency1,string currency2,string bank,string sellbuy)
 {
     CalculateBinder binder = new CalculateBinder();
     var res = binder.BindData(currency1,currency2,sellbuy,bank).ToArray();
     if (res[0].Currency == currency1)
     {
         var rate1 = res[0].Rate ;
         var rate2 = res[1].Rate;
         var x = (rate * rate1) /rate2;
         ViewBag.Head = x;
     }
     else
     {
         var rate1 = res[1].Rate;
         var rate2 = res[0].Rate;
         var x = (rate * rate1) / rate2;
         ViewBag.Head = x;
     }     
     
     
     return PartialView(res);
    
 }