using System.ComponentModel.DataAnnotations;

namespace BlazorServerProject.Data
{
    public class WeatherForecast
    {
        public DateOnly Date { get; set; }

        public int TemperatureC { get; set; }

        public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

        public string? Summary { get; set; }
    }

    public class ExampleModel
    {
        [Required]
        [StringLength(1, ErrorMessage = "Name is too long.")]
        public string Name { get; set; }
    }
}