MODELS AND CONTROLLERS
This commit is contained in:
16
Models/Libro.cs
Normal file
16
Models/Libro.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user