public ActionResult DeleteConfirmed(int id)
        {
            SodingTask sodingTask = db.Students.Find(id);

            db.Students.Remove(sodingTask);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,name,description,dateCreated,dateUpdated")] SodingTask sodingTask)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sodingTask).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sodingTask));
 }
        public ActionResult Create([Bind(Include = "Id,name,description,dateCreated,dateUpdated")] SodingTask sodingTask)
        {
            if (ModelState.IsValid)
            {
                db.Students.Add(sodingTask);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(sodingTask));
        }
        // GET: SodingTasks/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SodingTask sodingTask = db.Students.Find(id);

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