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

ToEntity() public static method

public static ToEntity ( ViewCount viewCount ) : ViewCount
viewCount ViewCount
return 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