// Retorna Asistencia para un usuario y una fechaId Asistencia RetAsistenciaUsuarioFecha(string UserId, int FechaId) { //AsistenciaData reader = new AsistenciaData(); IEntityReadByStringInt <Asistencia> reader = new AsistenciaData(); var ent = reader.QueryEntity(UserId, FechaId); return(ent); }
static void ReadEntidadAsistenciaUserFecha(AsistenciaData reader, string userId, int fechaId) { Asistencia p = reader.QueryEntity(userId, fechaId); Collection <Asistencia> ent = new Collection <Asistencia>(); ent.Add(p); PrintOutAsistencia(ent); }
static void ReadEntidadAsistencia(AsistenciaData reader, int id) { Asistencia p = reader.QueryEntity(id); //Console.WriteLine(string.Format("Entity Id: {0}\t Fecha Id: {1}\tUser Id: {2}\tChekIn Id: {3}\tChekOut Id: {4}\tCausa Id: {5}" // , p.Id, p.FechaId, p.UserId, p.ChekInId, p.ChekOutId, p.IncidenciaId)); Collection <Asistencia> ent = new Collection <Asistencia>(); ent.Add(p); PrintOutAsistencia(ent); }