PizzaSpecial.cs 678 B

1234567891011121314151617181920212223242526272829303132333435
  1. namespace BlazorWeb1.Models
  2. {
  3. public class PizzaSpecial
  4. {
  5. public int Id { get; set; }
  6. public string Name { get; set; }
  7. public decimal BasePrice { get; set; }
  8. public string Description { get; set; }
  9. public string ImageUrl { get; set; }
  10. public string GetFormattedBasePrice() => BasePrice.ToString("0.00");
  11. }
  12. public class Pizza
  13. {
  14. public int PizzaId { get; set; }
  15. public string Name { get; set; }
  16. public string Description { get; set; }
  17. public decimal Price { get; set; }
  18. public bool Vegetarian { get; set; }
  19. public bool Vegan { get; set; }
  20. }
  21. }