Blog.Logic.ObjectMapper.ViewCountMapper.ToDto C# (CSharp) Method

ToDto() public static method

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