// GET: /Home/CallGold public JsonResult CallGold() { try { SettingData data = new SettingData(); List <GoldData> datanew = new List <GoldData>(); datanew = data.GetPriceGold(); return(Json(new { data = datanew, NewCustomer = 3, PriceSaleOfWeek = 2, CustomerReceiptCount = 20, Closejob = 20, success = true }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { data = ex.Message, success = false }, JsonRequestBehavior.AllowGet)); } }