hechos un par de cambios

This commit is contained in:
videojuegoslagos
2024-08-14 08:42:34 -03:00
parent 063be0588e
commit 4741038dd3
132 changed files with 4472 additions and 1132 deletions

View File

@@ -20,7 +20,7 @@ namespace Modelo
public override Categoria ObtenerPorId(int Tid)
{
Categoria cat = context.Categorias.Find(Tid);
Categoria cat = context.Categorias.First(x => x.Id == Tid);
return cat ?? new Categoria();
}
@@ -31,7 +31,7 @@ namespace Modelo
public override void Del(Categoria t)
{
Categoria cat = context.Categorias.Find(t.Id);
Categoria cat = context.Categorias.First(x => x.Id == t.Id);
if (cat == null) return;
context.Categorias.Remove(cat);
}