Example #1
0
 public void Agregar(EXAMEN_PACIENTE examen_paciente)
 {
     using (DBClinicaEntities db = new DBClinicaEntities())
     {
         db.EXAMEN_PACIENTE.Add(examen_paciente);
         db.SaveChanges();
     }
 }
Example #2
0
        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();
            }
        }
Example #3
0
 public static void Editar(EXAMEN_PACIENTE examenPaciente)
 {
     obj.Editar(examenPaciente);
 }
Example #4
0
 public static void Agregar(EXAMEN_PACIENTE examenPaciente)
 {
     obj.Agregar(examenPaciente);
 }
Example #5
0
 public ActionResult Editar(EXAMEN_PACIENTE ExamenPaciente)
 {
     return(View(ExamenPaciente));
 }
Example #6
0
 public ActionResult Create(EXAMEN_PACIENTE examenPaciente)
 {
     Examen_PacienteBLL.Agregar(examenPaciente);
     return(View("~/Views/ExamenPaciente/Examen_Paciente.cshtml", examenPaciente));
 }