Exemplo n.º 1
0
      public JsonResult GetReqNoticountres()
      {
          ReqList          obj     = new ReqList();
          DataSet          ds      = obj.Show_Reqnoticount1();
          List <RequestVM> listreq = new List <RequestVM>();

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