예제 #1
0
      public JsonResult GetEmpProres()
      {
          ReqList           obj     = new ReqList();
          DataSet           ds      = obj.Show_Emppronoti();
          List <PositionVM> listpro = new List <PositionVM>();

          foreach (DataRow dr in ds.Tables[0].Rows)
          {
              listpro.Add(new PositionVM
                {
                    Position   = dr["Position"].ToString(),
                    Experience = dr["Experience"].ToString(),
                    EmployeeId = Convert.ToInt32(dr["EmployeeId"])
                });
          }
          return(Json(listpro, JsonRequestBehavior.AllowGet));
      }