using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace TriathlonRaceTracking.Models
{
    public class Athlete
    {
        public int ID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Nationality { get; set; }
        [NotMapped]
        public string FullName => $"{FirstName} {LastName}";

        public List<Registration> Registrations { get; set; }
    }
}
