Teams creation and prizes creation are implemented

This commit is contained in:
2020-05-05 23:25:28 +02:00
parent fc49f33575
commit 9596d9aa47
15 changed files with 387 additions and 4 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace TrackerLibrary.Models
@ -7,13 +8,26 @@ namespace TrackerLibrary.Models
public class PrizeModel
{
/// <summary>
/// The unique identifier for the prize
/// </summary>
/// <summary>
/// The unique identifier for the prize
/// </summary>
public int Id { get; set; }
[Display(Name = "Place Number")]
[Range(1, 100)]
[Required]
public int PlaceNumber { get; set; }
[Display(Name = "Place Name")]
[StringLength(100, MinimumLength = 3)]
[Required]
public string PlaceName { get; set; }
[Display(Name = "Prize Amount")]
[DataType(DataType.Currency)]
public decimal PrizeAmount { get; set; }
[Display(Name = "Prize Percentage")]
public double PrizePercentage { get; set; }
public PrizeModel()