record-my-ruck/RecordMyRuck/Models/RuckUpload.cs

23 lines
551 B
C#
Raw Permalink Normal View History

2024-05-17 04:30:18 +00:00
using System.ComponentModel.DataAnnotations;
namespace RecordMyRuck.Models
{
public class RuckUpload
{
[Required]
[Display(Name = "Date/Time")]
[DataType(DataType.DateTime)]
public DateTime DateTime { get; set; }
[Required]
public IFormFile Route { get; set; }
[Required]
[Display(Name = "Weigh (lb)")]
public float WeightPounds { get; set; }
[DataType(DataType.MultilineText)]
public string Notes { get; set; } = "";
}
}