Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            citass citass = db.citasses.Find(id);

            db.citasses.Remove(citass);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "id,citfecha,cithora,citPaciente,citMedico,citConsultorio,citestado,citobservaciones")] citass citass)
 {
     if (ModelState.IsValid)
     {
         db.Entry(citass).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(citass));
 }
Esempio n. 3
0
        public ActionResult Create([Bind(Include = "id,citfecha,cithora,citPaciente,citMedico,citConsultorio,citestado,citobservaciones")] citass citass)
        {
            if (ModelState.IsValid)
            {
                db.citasses.Add(citass);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(citass));
        }
Esempio n. 4
0
        // GET: citasses/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            citass citass = db.citasses.Find(id);

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