public ActionResult DeleteConfirmedAdministrador(int id) { Radiologo radiologo = db.Radiologo.Find(id); db.Radiologo.Remove(radiologo); db.SaveChanges(); return(RedirectToAction("IndexAdministrador")); }
public ActionResult EditTecnico([Bind(Include = "CodigoRadiologo,NombreUsuario,Activo")] Radiologo radiologo) { if (ModelState.IsValid) { db.Entry(radiologo).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.NombreUsuario = new SelectList(db.Usuario, "NombreUsuario", "Contrasenna", radiologo.NombreUsuario); return(View(radiologo)); }
public ActionResult Create([Bind(Include = "CodigoRadiologo,NombreUsuario,Activo")] Radiologo radiologo) { if (ModelState.IsValid) { db.Radiologo.Add(radiologo); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.NombreUsuario = new SelectList(db.Usuario, "NombreUsuario", "Contrasenna", radiologo.NombreUsuario); return(View(radiologo)); }
public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Radiologo radiologo = db.Radiologo.Find(id); if (radiologo == null) { return(HttpNotFound()); } return(View(radiologo)); }
public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Radiologo radiologo = db.Radiologo.Find(id); if (radiologo == null) { return(HttpNotFound()); } ViewBag.NombreUsuario = new SelectList(db.Usuario, "NombreUsuario", "Contrasenna", radiologo.NombreUsuario); return(View(radiologo)); }