Skip to content

Instantly share code, notes, and snippets.

@JIOO-phoeNIX
Created November 6, 2020 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JIOO-phoeNIX/8f7997d683cc1611d380d08a99925fc6 to your computer and use it in GitHub Desktop.
Save JIOO-phoeNIX/8f7997d683cc1611d380d08a99925fc6 to your computer and use it in GitHub Desktop.
using System;
using System.ComponentModel.DataAnnotations;
namespace BlazorWithML.NET.Model
{
public class BikeForcastInput
{
[Required(ErrorMessage = "Number of years to predict is required.")]
[Range(minimum: 1, maximum: 500, ErrorMessage = "Range of values allowed are 1 - 500")]
public int numberOfDaysToPredict { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment