Example #1
0
        // GET api/<controller>/5
        public string Get(int id)
        {
            OREManager myORE = new OREManager();

            myORE.LoadExposures();
            return(myORE.GetExposureResults());
        }
        // GET api/<controller>/5
        public string Get(int id)
        {
            OREManager myORE = new OREManager();

            myORE.LoadNPV();
            return(myORE.GetResults());
        }
Example #3
0
        public JsonResult RunORE(string tradeSpecification)
        {
            OREManager myORE = new OREManager();

            // call ORE to perform the calculation
            bool success = myORE.Run(tradeSpecification);

            return(Json(success));
        }