You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
387 B
18 lines
387 B
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace ContosoPizza.Models;
|
|
|
|
public class Pizza
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
public string? Name { get; set; }
|
|
public PizzaSize Size { get; set; }
|
|
public bool IsGlutenFree { get; set; }
|
|
|
|
[Range(0.01, 9999.99)]
|
|
public decimal Price { get; set; }
|
|
}
|
|
|
|
public enum PizzaSize { Small, Medium, Large } |