public static SectorGrowthRateVersion MapToSectorGrowthVer(this ActivityVMForCreateEdit x)
        {
            SectorGrowthRateVersion sectorGrowthRate = new SectorGrowthRateVersion()
            {
                Id                      = x.Id,
                DFIndicatorId           = x.DFIndicatorId,
                DFQuarterId             = x.DFQuarterId,
                DFSectorId              = x.DFSectorId,
                DFSourceId              = x.DFSourceId,
                DFUnitId                = x.DFUnitId,
                DFYearId                = x.DFYearId,
                BusinessServices        = x.BusinessServices,
                Communication           = x.Communication,
                Construction            = x.Construction,
                Education               = x.Education,
                GeneralGovernment       = x.GeneralGovernment,
                Health                  = x.Health,
                Information             = x.Information,
                ManufacturingIndustries = x.ManufacturingIndustries,
                OtherServices           = x.OtherServices,
                RealEstateOwnership     = x.RealEstateOwnership,
                AccommodationAndFoodServiceActivities = x.AccommodationAndFoodServiceActivities,
                AgricultureForestryFishing            = x.AgricultureForestryFishing,
                Electricity = x.Electricity,
                FinancialIntermediariesAuxiliaryServices = x.FinancialIntermediariesAuxiliaryServices,
                Gas                               = x.Gas,
                IsDeleted                         = x.IsDeleted,
                MiningQuarrying                   = x.MiningQuarrying,
                OtherExtraction                   = x.OtherExtraction,
                OtherManufacturing                = x.OtherManufacturing,
                Petroleum                         = x.Petroleum,
                petroleumRefining                 = x.petroleumRefining,
                RealEstateActivitie               = x.RealEstateActivitie,
                SocialSecurityAndInsurance        = x.SocialSecurityAndInsurance,
                SocialServices                    = x.SocialServices,
                SuezcCanal                        = x.SuezcCanal,
                TotalGDPAtFactorCost              = x.TotalGDPAtFactorCost,
                TransportationAndStorage          = x.TransportationAndStorage,
                WaterSewerageRemediationActivitie = x.WaterSewerageRemediationActivitie,
                WholesaleAndRetailTrade           = x.WholesaleAndRetailTrade,
                SectorGrowthRateId                = x.ActivityCurrentId,
                VersionStatusEnum                 = MPMAR.Analytics.Data.Enums.VersionStatusEIEnum.Draft,
                ChangeActionEnum                  = MPMAR.Analytics.Data.Enums.ChangeActionEIEnum.New,
                CreatedById                       = x.CreatedById
            };

            return(sectorGrowthRate);
        }
 public void UpdateVer(SectorGrowthRateVersion sectorGrowthRate)
 {
     _db.SectorGrowthRateVersion.Update(sectorGrowthRate);
     _db.SaveChanges();
 }
 public void AddVer(SectorGrowthRateVersion sectorGrowthRate)
 {
     _db.SectorGrowthRateVersion.Add(sectorGrowthRate);
     _db.SaveChanges();
 }