public void Agregar(EXAMEN_PACIENTE examen_paciente) { using (DBClinicaEntities db = new DBClinicaEntities()) { db.EXAMEN_PACIENTE.Add(examen_paciente); db.SaveChanges(); } }
public void Editar(EXAMEN_PACIENTE examen_paciente) { using (DBClinicaEntities db = new DBClinicaEntities()) { var p = db.EXAMEN_PACIENTE.Find(examen_paciente.ID_EXAMEN_PACIENTE); p.ID_EXAMEN_PACIENTE = examen_paciente.ID_EXAMEN_PACIENTE; p.ID_EXAMEN = examen_paciente.ID_EXAMEN; p.ID_PACIENTE = examen_paciente.ID_PACIENTE; p.FECHA_REALIZO = examen_paciente.FECHA_REALIZO; p.ENCARGADO = examen_paciente.ENCARGADO; db.SaveChanges(); } }
public static void Editar(EXAMEN_PACIENTE examenPaciente) { obj.Editar(examenPaciente); }
public static void Agregar(EXAMEN_PACIENTE examenPaciente) { obj.Agregar(examenPaciente); }
public ActionResult Editar(EXAMEN_PACIENTE ExamenPaciente) { return(View(ExamenPaciente)); }
public ActionResult Create(EXAMEN_PACIENTE examenPaciente) { Examen_PacienteBLL.Agregar(examenPaciente); return(View("~/Views/ExamenPaciente/Examen_Paciente.cshtml", examenPaciente)); }