Esempio n. 1
0
        /// <summary>
        /// Transforms a DComic object into a Comic object.
        /// </summary>
        /// <param name="dComic">DComic to transform.</param>
        /// <returns>A Comic object.</returns>
        public static Comic ToComic(DComic dComic)
        {
            Comic toReturn = new Comic(dComic.Title, ToSeries(dComic.Series), dComic.SeriesNumber, ToAuthors(dComic.Authors), ToPublisher(dComic.Publisher), dComic.AmountAvailable);

            return(toReturn);
        }
Esempio n. 2
0
        /// <summary>
        /// Transforms a Comic object into a DComic object.
        /// </summary>
        /// <param name="comic">Comic to transform.</param>
        /// <returns>A DComic object.</returns>
        public static DComic ToDComic(Comic comic)
        {
            DComic toReturn = new DComic(comic.Title, ToDSeries(comic.Series), comic.SeriesNumber, ToDAuthors(comic.Authors), ToDPublisher(comic.Publisher), comic.AmountAvailable);

            return(toReturn);
        }