public JsonResult FetchAutocallIVSurfaceList(string RedemptionDays, string NoOfSimulation, string IV, string RFR)
        {
            try
            {
                List <AutocallIVSurface> AutocallIVSurfaceList = new List <AutocallIVSurface>();

                if (RedemptionDays == "" || RedemptionDays == "0")
                {
                    RedemptionDays = "-1";
                }

                if (NoOfSimulation == "" || NoOfSimulation == "0")
                {
                    NoOfSimulation = "-1";
                }

                if (IV == "" || IV == "0")
                {
                    IV = "-1";
                }

                if (RFR == "" || RFR == "0")
                {
                    RFR = "-1";
                }

                DataSet dsResult = new DataSet();
                dsResult = General.ExecuteDataSet("SP_FETCH_AUTOCALL_IV_SURFACE_DETAILS", RedemptionDays, NoOfSimulation, IV, RFR);

                if (dsResult != null && dsResult.Tables.Count > 0 && dsResult.Tables[0].Rows.Count > 0)
                {
                    foreach (DataRow dr in dsResult.Tables[0].Rows)
                    {
                        AutocallIVSurface obj = new AutocallIVSurface();

                        obj.MaxRedemptionDays = Convert.ToInt32(dr["MaxRedemptionDays"]);
                        obj.MaxSimulation     = Convert.ToInt32(dr["MaxSimulation"]);
                        obj.IV  = Convert.ToDouble(dr["IV"]);
                        obj.RFR = Convert.ToDouble(dr["RFR"]);

                        AutocallIVSurfaceList.Add(obj);
                    }
                }

                var AutocallIVSurfaceListData = AutocallIVSurfaceList.ToList();
                return(Json(AutocallIVSurfaceListData, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                UserMaster objUserMaster = new UserMaster();
                objUserMaster = (UserMaster)Session["LoggedInUser"];
                LogError(ex.Message, ex.StackTrace, "BlackscholesPricersController", "FetchFixedCouponList", objUserMaster.UserID);
                return(Json(""));
            }
        }
 public ActionResult AutocallIVSurface(AutocallIVSurface objAutocallIVSurface)
 {
     return(View());
 }