public static void MapTo(this FeaturedStatistics statistics, FeaturedStatisticsEntity entity) { entity.createdJobAds = statistics.CreatedJobAds; entity.members = statistics.Members; entity.memberSearches = statistics.MemberSearches; entity.memberAccesses = statistics.MemberAccesses; }
public static FeaturedStatistics Map(this FeaturedStatisticsEntity entity) { return(new FeaturedStatistics { CreatedJobAds = entity.createdJobAds, Members = entity.members, MemberSearches = entity.memberSearches, MemberAccesses = entity.memberAccesses, }); }