public ActionResult DeleteConfirmed(int id)
        {
            HORARIO hORARIO = db.HORARIOS.Find(id);

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

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

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