MODELS AND CONTROLLERS

This commit is contained in:
MARIFER HERNANDEZ GONZALEZ
2025-10-28 19:40:21 -06:00
parent 7b037ee769
commit e873c3f903
14 changed files with 279 additions and 32 deletions

16
Models/Libro.cs Normal file
View File

@@ -0,0 +1,16 @@
using System.ComponentModel.DataAnnotations;
namespace BibliotecaAPI.Models
{
public class Libro
{
[Key]
public int Id { get; set; }
public string Titulo { get; set; } = string.Empty;
public string Autor { get; set; } = string.Empty;
public string ISBN { get; set; } = string.Empty;
public int Año { get; set; }
public string Categoria { get; set; } = string.Empty;
public int CopiasDisponibles { get; set; }
}
}