BuecherwurmAPI/Models/Item.cs

16 lines
318 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace BuecherwurmAPI.Models
{
public class Item
{
2020-06-02 12:24:26 +00:00
[Key, Required]
public long ItemId { get; set; }
[Required]
public long BookId { get; set; }
}
2020-06-03 07:20:55 +00:00
public class ItemPost
{
public int BookId { get; set; }
}
}