public JsonResult ToValueChanged(CurrencyConversionViewModel res)
        {
            Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current);

            BusinessLibrary.Library.CurrencyConversionLibrary ccLib = new BusinessLibrary.Library.CurrencyConversionLibrary(session, res, true);
            return(Json(ccLib.GetCurrencyConversion(), JsonRequestBehavior.AllowGet));
        }
        public JsonResult ResetToDefault(CurrencyConversionViewModel res)
        {
            BusinessLibrary.Library.CurrencyConversionLibrary ccLib = new BusinessLibrary.Library.CurrencyConversionLibrary(Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current));
            CurrencyConversionViewModel ccvModel = ccLib.GetCurrencyConversion();

            return(Json(ccLib.GetCurrencyConversion(), JsonRequestBehavior.AllowGet));
        }
        // GET: ConversionCalculator
        public ActionResult Index()
        {
            Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current);

            BusinessLibrary.Library.CurrencyConversionLibrary ccLib = new BusinessLibrary.Library.CurrencyConversionLibrary(session);
            CurrencyConversionViewModel ccvModel = ccLib.GetCurrencyConversion();

            return(View("ConversionCalculator", ccvModel));
        }