avance: estado pre implementacion de notificaciones
This commit is contained in:
@@ -177,4 +177,12 @@ public class RepositorioUsuarios: RepositorioBase<RepositorioUsuarios> {
|
||||
Cliente? cli = con.Clientes.FirstOrDefault(x=>x.Dni == dni);
|
||||
return cli;
|
||||
}
|
||||
|
||||
public Cliente? ObtenerClientePorToken(string token) {
|
||||
var con = Context;
|
||||
Cliente? cli = con.Clientes.Include(x=>x.NotificacioneDniclienteNavigations).FirstOrDefault(x=>x.Token == token);
|
||||
|
||||
if (cli == null|| cli.Dni == 0) return null;
|
||||
return cli;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user