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

ToEntity() 공개 정적인 메소드

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