// GET: api/BitacoraTypeUserRangeDatesFilter/5 public Bitacora Get(int id) { List <Bitacora> bitacoras = new Bitacora().GetBitacorasUserFilteredbyDateRangeAndTypeAndUser(ref mensaje_error, ref numero_error, Bitacora.GlobalValueFilterUser, Bitacora.GlobalValueFilterType, Bitacora.GlobalValueFilterDateIni, Bitacora.GlobalValueFilterDateFin); crypting c = new crypting(); Bitacora x = bitacoras.ElementAt(id); Bitacora spes = new Bitacora(); spes.Cod_Registro = x.Cod_Registro; spes.Cod_User_FK = c.decrypt(x.Cod_User_FK); spes.FechaTime = c.decrypt(x.FechaTime); spes.Tipo = c.decrypt(x.Tipo); spes.Time = c.decrypt(x.Time); spes.Cod_Regis = x.Cod_Regis; spes.Descripcion = c.decrypt(x.Descripcion); spes.RegistroDetalle = c.decrypt(x.RegistroDetalle); return(spes); }
// GET: api/Bitacora/5 public Bitacora Get(int id) { List <Bitacora> bitacoras = new Bitacora().GetBitacoras(ref mensaje_error, ref numero_error); crypting c = new crypting(); Bitacora x = bitacoras.ElementAt(id); Bitacora spes = new Bitacora(); spes.Cod_Registro = x.Cod_Registro; spes.Cod_User_FK = c.decrypt(x.Cod_User_FK); spes.FechaTime = c.decrypt(x.FechaTime); spes.Tipo = c.decrypt(x.Tipo); spes.Time = c.decrypt(x.Time); spes.Cod_Regis = x.Cod_Regis; spes.Descripcion = c.decrypt(x.Descripcion); spes.RegistroDetalle = c.decrypt(x.RegistroDetalle); return(spes); }