Example #1
0
        public static QuoteVM Map(QuoteSM phrase)
        {
            QuoteVM quote = new QuoteVM();

            quote.QuoteId        = phrase.QuoteId;
            quote.Phrase         = phrase.Phrase;
            quote.Author         = phrase.Author;
            quote.CategoryNumber = phrase.CategoryNum;
            quote.RatingNumber   = phrase.RatingNum;
            quote.NumRatings     = phrase.NumRatings;
            quote.RatingScore    = phrase.RatingScore;
            return(quote);
        }
Example #2
0
        public static QuoteSM Map(QuoteVM quote)
        {
            QuoteSM phrase = new QuoteSM();

            phrase.QuoteId     = quote.QuoteId;
            phrase.Phrase      = quote.Phrase;
            phrase.Author      = quote.Author;
            phrase.CategoryNum = quote.CategoryNumber;
            phrase.RatingNum   = quote.RatingNumber;
            phrase.NumRatings  = quote.NumRatings;
            phrase.RatingScore = quote.RatingScore;
            return(phrase);
        }