17 lines
No EOL
323 B
C#
17 lines
No EOL
323 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BuecherwurmAPI.Models
|
|
{
|
|
public class Item
|
|
{
|
|
[Key, Required]
|
|
public long ItemId { get; set; }
|
|
[Required]
|
|
public long BookId { get; set; }
|
|
}
|
|
public class ItemPost
|
|
{
|
|
public int BookId { get; set; }
|
|
}
|
|
|
|
} |