예제 #1
0
      public JsonResult GetReqNoticount()
      {
          ReqList          obj     = new ReqList();
          DataSet          ds      = obj.Show_Reqnoticounts();
          List <RequestVM> listreq = new List <RequestVM>();

          foreach (DataRow dr in ds.Tables[0].Rows)
          {
              listreq.Add(new RequestVM
                {
                    count = Convert.ToInt32(dr["Totalcount"])
                });
          }
          return(Json(listreq, JsonRequestBehavior.AllowGet));
      }