示例#1
0
        public ActionResult DeleteConfirmed(string id)
        {
            uv_Course uv_Course = db.uv_Course.Find(id);

            db.uv_Course.Remove(uv_Course);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#2
0
 public ActionResult Edit([Bind(Include = "CourseHDID,CourseCode,teachID,teachCode,SujectCode,TimeStart_txt,TimeStart,TimeEnd_txt,TimeEnd,CourseYear,Semester,FullNameT,SujectID,SujectName,TimeLate,NumCheckIN,Entitled,NotEntitled,Contact,CourseDTID,StudID,StudCode,FullNameS,MinorID,MinorCode,MinorName")] uv_Course uv_Course)
 {
     if (ModelState.IsValid)
     {
         db.Entry(uv_Course).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(uv_Course));
 }
示例#3
0
        // GET: Course/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            uv_Course uv_Course = db.uv_Course.Find(id);

            if (uv_Course == null)
            {
                return(HttpNotFound());
            }
            return(View(uv_Course));
        }