protected void Page_Load(object sender, EventArgs e)
 {
     NashService.Service1 svc = new NashService.Service1();
     Page.Response.Write(svc.HelloWorld());
     RestNash.Currency c = new RestNash.Currency();
     c.FromCurrency = RestNash.CurrencyCode.INR;
     c.ToCurrency = RestNash.CurrencyCode.USD;
     c.Rate = 54;
     double dollars = 1000 * c.Rate;
     Page.Response.Write(dollars);
 }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            NashService.Service1 svc = new NashService.Service1();
            Page.Response.Write(svc.HelloWorld());
            RestNash.Currency c = new RestNash.Currency();
            c.FromCurrency = RestNash.CurrencyCode.INR;
            c.ToCurrency   = RestNash.CurrencyCode.USD;
            c.Rate         = 54;
            double dollars = 1000 * c.Rate;

            Page.Response.Write(dollars);
        }