namespace CinemaWorld.Models.ViewModels.Movies
{
    using CinemaWorld.Data.Models;
    using CinemaWorld.Services.Mapping;

    public class TopMovieDetailsViewModel : IMapFrom<Movie>
    {
        public string Name { get; set; }

        public string Description { get; set; }

        public string ShortDescription
        {
            get
            {
                var shortDescription = this.Description;
                return shortDescription.Length > 400
                        ? shortDescription.Substring(0, 400) + " ..."
                        : shortDescription;
            }
        }

        public string WallpaperPath { get; set; }
    }
}
