public JsonResult GetReqNotires() { ReqList obj = new ReqList(); DataSet ds = obj.Show_Reqnotidata1(); List <RequestVM> listreq = new List <RequestVM>(); foreach (DataRow dr in ds.Tables[0].Rows) { listreq.Add(new RequestVM { CityName = dr["CityName"].ToString(), RequestId = Convert.ToInt32(dr["RequestId"]), EmployeeId = Convert.ToInt32(dr["EmployeeId"]), EmployeeName = dr["EmployeeName"].ToString(), DateofRequest = Convert.ToDateTime(dr["DateofRequest"]), RequestType = dr["RequestType"].ToString(), Position = dr["Position"].ToString(), Status = dr["Status"].ToString() }); } return(Json(listreq, JsonRequestBehavior.AllowGet)); }