29 lines
772 B
C#
29 lines
772 B
C#
using ProjectHorseRacingOrg.Entities.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProjectHorseRacingOrg.Entities;
|
|
|
|
public class Jockey
|
|
{
|
|
public int Id { get; private set; }
|
|
public string FirstName { get; private set; } = string.Empty;
|
|
public string LastName { get; private set; } = string.Empty;
|
|
public JockeyTitle JockeyTitle { get; private set; }
|
|
public static Jockey CreateEntity(int id, string first, string last,
|
|
JockeyTitle jockeyTitle)
|
|
{
|
|
return new Jockey
|
|
{
|
|
Id = id,
|
|
FirstName = first ?? string.Empty,
|
|
LastName = last ?? string.Empty,
|
|
JockeyTitle = jockeyTitle
|
|
};
|
|
}
|
|
|
|
}
|