C# 클래스 BloggingSystem.Services.DataMappers.PostsMapper

파일 보기 프로젝트 열기: vladislav-karamfilov/TelerikAcademy

공개 메소드들

메소드 설명
CreateNewEntity ( PostModel postModel, User author, BloggingSystemContext context ) : Post
ToModel ( Post postEntity ) : PostModel
ToPostedModel ( Post postEntity ) : PostedPost

메소드 상세

CreateNewEntity() 공개 정적인 메소드

public static CreateNewEntity ( PostModel postModel, User author, BloggingSystemContext context ) : Post
postModel BloggingSystem.DataTransferObjects.PostModel
author BloggingSystem.Models.User
context BloggingSystem.Data.BloggingSystemContext
리턴 BloggingSystem.Models.Post

ToModel() 공개 정적인 메소드

public static ToModel ( Post postEntity ) : PostModel
postEntity BloggingSystem.Models.Post
리턴 BloggingSystem.DataTransferObjects.PostModel

ToPostedModel() 공개 정적인 메소드

public static ToPostedModel ( Post postEntity ) : PostedPost
postEntity BloggingSystem.Models.Post
리턴 BloggingSystem.DataTransferObjects.PostedPost