HAY UN AVANCE

This commit is contained in:
fedpo
2024-08-27 04:36:00 +01:00
parent 670190c44b
commit 2428f615a6
76 changed files with 5786 additions and 496 deletions

View File

@@ -10,7 +10,6 @@ namespace Modelo
public RepositorioCategoria(Context context)
{
this.context = context;
}
public override List<Categoria> Listar()
@@ -20,7 +19,7 @@ namespace Modelo
public Categoria ObtenerPorId(int Tid)
{
Categoria cat = context.Categorias.First(x => x.Id == Tid);
Categoria cat = context.Categorias.FirstOrDefault(x => x.Id == Tid);
return cat ?? new Categoria();
}