Ejemplo n.º 1
0
        /// <summary>
        /// Constructor function that copys a media row
        /// </summary>
        /// <param name="mediaRow"></param>

        public MediaDTO(Model.MediaDTO mediaRow)
        {
            MediaID  = mediaRow.MediaID;
            Title    = mediaRow.Title;
            Genre    = new GenreDTO(mediaRow.Genre);
            Language = new LanguageDTO(mediaRow.Language);
            Director = new DirectorDTO(mediaRow.Director);
            Year     = mediaRow.Year;
            this.SetBudget(mediaRow.Budget * 1000000);
        }
Ejemplo n.º 2
0
        public Model.MediaDTO Translate()
        {
            Model.MediaDTO Output = new Model.MediaDTO(
                this.MediaID,
                this.Title,
                this.Genre.Translate(),
                this.Director.Translate(),
                this.Language.Translate(),
                this.Year,
                this.BudgetValue / 1000000
                );

            return(Output);
        }