Пример #1
0
        public async Task <ActionResult> Edit([Bind(Include = "idTipoIdentificacion,numeroIdentificacion,primerNombre,segundoNombre,primerApellido,segundoApellido,idTipo,fechaNacimiento,idCiudad,celular,telefonoFijo,correo,createdDate,createdBy,updatedDate,updatedBy")] sm_Persona sm_Persona)
        {
            if (ModelState.IsValid)
            {
                db.Entry(sm_Persona).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.idTipoIdentificacion = new SelectList(db.sm_Paciente, "idTipoIdentificacion", "segmento", sm_Persona.idTipoIdentificacion);
            ViewBag.idTipoIdentificacion = new SelectList(db.sm_Paciente, "idTipoIdentificacion", "segmento", sm_Persona.idTipoIdentificacion);
            ViewBag.idTipoIdentificacion = new SelectList(db.sm_PacientePrograma, "idTipoIdentificacion", "observaciones", sm_Persona.idTipoIdentificacion);
            return(View(sm_Persona));
        }