namespace CinemaWorld.Models.ViewModels.Directors
{
    using System.ComponentModel.DataAnnotations;

    using CinemaWorld.Data.Models;
    using CinemaWorld.Services.Mapping;

    using static CinemaWorld.Models.Common.ModelValidation.Director;

    public class DirectorDetailsViewModel : IMapFrom<Director>
    {
        public int Id { get; set; }

        [Display(Name = FirstNameDisplayName)]
        public string FirstName { get; set; }

        [Display(Name = LastNameDisplayName)]
        public string LastName { get; set; }

        [Display(Name = FullNameDisplayName)]
        public string FullName => string.Concat(this.FirstName, " ", this.LastName);
    }
}
