public JsonResult currencyexchange(string CurrencyId) { string json = ""; BusssinessLogic objbal = new BusssinessLogic(); List <CurrencyTypes> lstcurrency = new List <CurrencyTypes>(); var jsonSerialiser = new JavaScriptSerializer(); try { lstcurrency = objbal.blcurrency(CurrencyId); json = jsonSerialiser.Serialize(lstcurrency); } catch (Exception ex) { throw ex; } return(Json(json, JsonRequestBehavior.AllowGet)); }