C# 클래스 CrowdSourcedNews.Mappers.NewsArticlesMapper

파일 보기 프로젝트 열기: vladislav-karamfilov/TelerikAcademy 1 사용 예제들

공개 메소드들

메소드 설명
ToNewsArticleDetails ( NewsArticle newsArticle ) : CrowdSourcedNews.DataTransferObjects.NewsArticleDetails
ToNewsArticleEntity ( CrowdSourcedNews.DataTransferObjects.NewsArticleModel newsArticleModel, DbUsersRepository usersRepository, IRepository commentsRepository, IRepository newsArticlesRepository ) : NewsArticle
ToNewsArticleModel ( NewsArticle newsArticle ) : CrowdSourcedNews.DataTransferObjects.NewsArticleModel

메소드 상세

ToNewsArticleDetails() 공개 정적인 메소드

public static ToNewsArticleDetails ( NewsArticle newsArticle ) : CrowdSourcedNews.DataTransferObjects.NewsArticleDetails
newsArticle CrowdSourcedNews.Models.NewsArticle
리턴 CrowdSourcedNews.DataTransferObjects.NewsArticleDetails

ToNewsArticleEntity() 공개 정적인 메소드

public static ToNewsArticleEntity ( CrowdSourcedNews.DataTransferObjects.NewsArticleModel newsArticleModel, DbUsersRepository usersRepository, IRepository commentsRepository, IRepository newsArticlesRepository ) : NewsArticle
newsArticleModel CrowdSourcedNews.DataTransferObjects.NewsArticleModel
usersRepository DbUsersRepository
commentsRepository IRepository
newsArticlesRepository IRepository
리턴 CrowdSourcedNews.Models.NewsArticle

ToNewsArticleModel() 공개 정적인 메소드

public static ToNewsArticleModel ( NewsArticle newsArticle ) : CrowdSourcedNews.DataTransferObjects.NewsArticleModel
newsArticle CrowdSourcedNews.Models.NewsArticle
리턴 CrowdSourcedNews.DataTransferObjects.NewsArticleModel