public static EgyptVision MapToEgyptVision(this EgyptVisionEditViewModel pgMinisty) { EgyptVision pageSectionVersion = new EgyptVision(); pageSectionVersion.EnEgyptVisionName = pgMinisty.EnEgyptVisionName; pageSectionVersion.ArEgyptVisionName = pgMinisty.ArEgyptVisionName; pageSectionVersion.EnEgyptVisionSmallDesc = pgMinisty.EnEgyptVisionSmallDesc; pageSectionVersion.ArEgyptVisionSmallDesc = pgMinisty.ArEgyptVisionSmallDesc; pageSectionVersion.EnEgyptVisionDesc = pgMinisty.EnEgyptVisionDesc; pageSectionVersion.ArEgyptVisionDesc = pgMinisty.ArEgyptVisionDesc; pageSectionVersion.IsActive = pgMinisty.IsActive; pageSectionVersion.IsDeleted = pgMinisty.IsDeleted; pageSectionVersion.EnImagePath = pgMinisty.EnImagePath; pageSectionVersion.ArImagePath = pgMinisty.ArImagePath; pageSectionVersion.Order = pgMinisty.Order; pageSectionVersion.ImagePositionIsRight = pgMinisty.ImagePositionIsRight; pageSectionVersion.BgColor = pgMinisty.BgColor; pageSectionVersion.LineColor = pgMinisty.LineColor; pageSectionVersion.SeoTitleEN = pgMinisty.SeoTitleEN; pageSectionVersion.SeoTitleAR = pgMinisty.SeoTitleAR; pageSectionVersion.SeoDescriptionEN = pgMinisty.SeoDescriptionEN; pageSectionVersion.SeoDescriptionAR = pgMinisty.SeoDescriptionAR; pageSectionVersion.SeoOgTitleEN = pgMinisty.SeoOgTitleEN; pageSectionVersion.SeoOgTitleAR = pgMinisty.SeoOgTitleAR; pageSectionVersion.SeoTwitterCardEN = pgMinisty.SeoTwitterCardEN; pageSectionVersion.SeoTwitterCardAR = pgMinisty.SeoTwitterCardAR; if (pgMinisty.Id > 0) { pageSectionVersion.Id = pgMinisty.Id; } return(pageSectionVersion); }
public static EgyptVisionEditViewModel MapToSctionCardViewModel(this EgyptVision pgMinisty) { EgyptVisionEditViewModel viewModel = new EgyptVisionEditViewModel() { Id = pgMinisty.Id, EnEgyptVisionName = pgMinisty.EnEgyptVisionName, ArEgyptVisionName = pgMinisty.ArEgyptVisionName, EnEgyptVisionSmallDesc = pgMinisty.EnEgyptVisionSmallDesc, ArEgyptVisionSmallDesc = pgMinisty.ArEgyptVisionSmallDesc, EnEgyptVisionDesc = pgMinisty.EnEgyptVisionDesc, ArEgyptVisionDesc = pgMinisty.ArEgyptVisionDesc, IsActive = pgMinisty.IsActive, IsDeleted = pgMinisty.IsDeleted, EnImagePath = pgMinisty.EnImagePath, ArImagePath = pgMinisty.ArImagePath, SeoTitleEN = pgMinisty.SeoTitleEN, SeoTitleAR = pgMinisty.SeoTitleAR, SeoDescriptionEN = pgMinisty.SeoDescriptionEN, SeoDescriptionAR = pgMinisty.SeoDescriptionAR, SeoOgTitleEN = pgMinisty.SeoOgTitleEN, SeoOgTitleAR = pgMinisty.SeoOgTitleAR, SeoTwitterCardEN = pgMinisty.SeoTwitterCardEN, SeoTwitterCardAR = pgMinisty.SeoTwitterCardAR, BgColor = pgMinisty.BgColor, LineColor = pgMinisty.LineColor, Order = pgMinisty.Order, ImagePositionIsRight = pgMinisty.ImagePositionIsRight, ApprovalDate = pgMinisty.ApprovalDate, ApprovedById = pgMinisty.ApprovedById, CreatedById = pgMinisty.CreatedById, CreationDate = pgMinisty.CreationDate, ModificationDate = pgMinisty.ModificationDate, ModifiedById = pgMinisty.ModifiedById, PageRouteVersionId = pgMinisty.PageRouteVersionId, StatusId = pgMinisty.StatusId }; return(viewModel); }