// 傳入 使用者PK 執行 [瀏覽瀏覽職缺紀錄] 功能 // 回傳 整筆資料或部分資料(json的HistoryModel型態) public ActionResult browseHistoryjob() { HM.History hm = new HM.History(); List <HM.HistoryModel> hmModel = new List <HM.HistoryModel>(); hmModel = hm.browseHistoryjob(Session["suserID"].ToString()); return(Json(hmModel)); }
public ActionResult insertHistory(int jobID) { string msg = ""; HM.History hm = new HM.History(); if (Session["suserID"] == null || string.IsNullOrWhiteSpace(Session["suserID"].ToString())) { System.Diagnostics.Debug.Print("還沒登入"); } else { msg = hm.insertHistory(Session["suserID"].ToString(), jobID); } return(Content(msg)); }