Ejemplo n.º 1
0
        // GET: RateList
        public ActionResult Index()
        {
            Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current);

            BusinessLibrary.Library.RateTrendsLibrary rtLib = new BusinessLibrary.Library.RateTrendsLibrary();
            return(View("~/Views/RateTrends/RateList.cshtml", rtLib.GetInitialRateListSettings(session)));
        }
Ejemplo n.º 2
0
 public JsonResult GetRatesForBase(DataTableParams Params, string BaseCurrency)
 {
     BusinessLibrary.Library.RateTrendsLibrary rtLib = new BusinessLibrary.Library.RateTrendsLibrary();
     return(Json(rtLib.GetRatesForBase(Params, BaseCurrency), JsonRequestBehavior.AllowGet));
 }
Ejemplo n.º 3
0
 public JsonResult GetRateTrendData(BusinessLibrary.UIRequestClasses.RateChartDataRequest rcd)
 {
     BusinessLibrary.Library.RateTrendsLibrary rtLib = new BusinessLibrary.Library.RateTrendsLibrary();
     return(Json(new { Data = rtLib.GetHistoricalRates(rcd.CurrencyFrom, rcd.CurrencyTo, rcd.Days), CurrencyTo = rcd.CurrencyTo }, JsonRequestBehavior.AllowGet));
 }