// GET: Cita/Delete/5 public ActionResult Delete(int id) { var biz = new CitaProcess(); var cita = biz.GetByID(id); return(View(cita)); }
// GET: Cita/Details/5 public ActionResult Details(int id) { var biz = new CitaProcess(); var Cita = biz.GetByID(id); return(View(Cita)); }
public ActionResult Edit(int id) { var biz = new CitaProcess(); var cita = biz.GetByID(id); ViewBag.TipoServicioId = new SelectList(TipoServicioProcess.ListarTodos(), "Id", "Nombre"); ViewBag.SalaId = new SelectList(SalaProcess.ListarTodos(), "Id", "Nombre"); ViewBag.MedicoId = new SelectList(medicoprocess.ListarTodos(), "Id", "Nombre"); ViewBag.PacienteId = new SelectList(pacienteprocess.ListarTodos(), "Id", "Nombre"); return(View(cita)); }