public List<Cirujano> ObtenerCirujanos(Entidad cirugia) { List<Cirujano> retorno = new List<Cirujano>(); try { CirujanoServicio entidad = new CirujanoServicio(); entidad.Id = cirugia.Id; ServicioCirujano servicio = new ServicioCirujano(); foreach (var cirujanoServicio in servicio.ObtenerCirujanos( entidad)) { Cirujano cirujano = new Cirujano(); cirujano.Id = cirujanoServicio.Id; cirujano.Cedula = cirujanoServicio.Cedula; cirujano.Correo = cirujanoServicio.Correo; cirujano.Nombre = cirujanoServicio.Nombre; cirujano.PrimerApellido = cirujanoServicio.PrimerApellido; cirujano.SegundoApellido = cirujanoServicio.SegundoApellido; cirujano.SegundoNombre = cirujanoServicio.SegundoNombre; cirujano.Telefono = cirujanoServicio.Telefono; cirujano.TelefonoMovil = cirujanoServicio.TelefonoMovil; cirujano.TelefonoFijo = cirujanoServicio.TelefonoFijo; retorno.Add(cirujano); } return retorno; } catch (Exception) { return retorno; } }
/// <summary> /// Metodo que elimina un paciente de la base de datos /// </summary> /// <param name="paciente"></param> /// <returns></returns> public bool EliminarPaciente(Entidad paciente) { throw new NotImplementedException(); }
public bool EliminarCirujano(Entidad cirujano) { throw new NotImplementedException(); }