using System.ComponentModel.DataAnnotations; namespace BuecherwurmAPI.Models { public class ItemPost { [Required] public int BookId { get; set; } } }