public ActionResult GetPVCount() { try { var pvInfo = HTTPHelper.GetTheWebPVInfo(); return(Json(new { IsSuccess = true, PVCount = pvInfo.PVCount })); } catch (Exception ex) { return(Json(new { IsSuccess = false, Error = ex.ToString() })); } }
public ActionResult WritePVToJson() { HTTPHelper.WriteToJsonFile(); return(View(HTTPHelper.GetTheWebPVInfo())); }