internal static CommunityPrintDirectionVm MapToCommunityPrintDirectionVm(this Community community, PageType pageType, double latitude, double longitude) { CommunityPrintDirectionVm communityDetailsVm = community.MapToCommunityDetailsVm(pageType, new CommunityPrintDirectionVm()) as CommunityPrintDirectionVm; if (communityDetailsVm != null) { communityDetailsVm.StartLatitude = latitude; communityDetailsVm.StartLongitude = longitude; } return(communityDetailsVm); }
public static CommunityPrintDirectionVm GetCommunityPrintDirectionVm(long communityId, PageType pageType, double latitude, double longitude) { CommunityPrintDirectionVm communityPrintDirectionVm = null; Community community = SearchBc.Instance.GetCommunity(communityId); if (community != null) { communityPrintDirectionVm = community.MapToCommunityPrintDirectionVm(pageType, latitude, longitude); communityPrintDirectionVm.Seo = SeoHelper.GetSeo(communityPrintDirectionVm); } return(communityPrintDirectionVm); }