public ActionResult RememberTime(C_LessonCheckTime LCT, string lessonid, string userid, string timenow, string timeall) { LCT.LessonID = Convert.ToInt32(lessonid); LCT.UserID = Convert.ToInt32(userid); LCT.LessonTimeCheck = Convert.ToInt32(timenow); LCT.LessonTime = Convert.ToInt32(timeall); reLCT.Create(LCT); return(Content("")); }
public ActionResult InClass(string lessonid, string userid, string timenow, string timeall, int id, int lid = 0) { ViewBag.UID = -1; if (Request.Cookies["account"].Value != HttpUtility.UrlEncode("訪客") && Request.Cookies["UserID"] != null) { ViewBag.UID = Convert.ToInt32(Request.Cookies["UserID"].Value); if (lessonid != null) { C_LessonCheckTime LCT = new C_LessonCheckTime(); LCT.LessonID = Convert.ToInt32(lessonid); LCT.UserID = Convert.ToInt32(userid); LCT.LessonTimeCheck = Convert.ToInt32(timenow); LCT.LessonTime = Convert.ToInt32(timeall); reLCT.Create(LCT); } } ViewBag.ClassID = id; return(PartialView(Lessonservice.LessonList(id))); }