Blog.Logic.ObjectMapper.ViewCountMapper.ToDto C# (CSharp) 메소드

ToDto() 공개 정적인 메소드

public static ToDto ( Blog.DataAccess.Database.Entities.Objects viewCount ) : ViewCount
viewCount Blog.DataAccess.Database.Entities.Objects
리턴 ViewCount
        public static ViewCount ToDto(Db.ViewCount viewCount)
        {
            return viewCount == null ? null :
                new ViewCount
                {
                    PostId = viewCount.PostId,
                    Id = viewCount.Id,
                    UserId = viewCount.UserId
                };
        }
ViewCountMapper