示例#1
0
 public JsonResult GetClickCount(string title)
 {
     try
     {
         double res = CommonController.GetCount(title);
         return(Json(new { success = true, count = res }));
     }
     catch (Exception ex)
     {
         return(Json(new { success = false, msg = ex.Message }));
     }
 }
示例#2
0
 // GET: ReqRpt011
 public ActionResult Index()
 {
     ViewBag.ClickCount = CommonController.GetCount("RPT000011");
     return(View());
 }