public ActionResult DeleteConfirmed(int id)
        {
            attendancestatus attendancestatus = db.attendancestatus.Find(id);

            db.attendancestatus.Remove(attendancestatus);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id,status")] attendancestatus attendancestatus)
 {
     if (ModelState.IsValid)
     {
         db.Entry(attendancestatus).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(attendancestatus));
 }
        public ActionResult Create([Bind(Include = "id,status")] attendancestatus attendancestatus)
        {
            if (ModelState.IsValid)
            {
                db.attendancestatus.Add(attendancestatus);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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