public bool Update(HomePageLogoLinkVersions model)
 {
     try
     {
         _db.HomePageLogoLinkVersions.Update(model);
         _db.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
        public static HomePageLogoLinkVersions MapToLogoLinkVersionModel(this HP_LogoLinkViewModel pgMinisty)
        {
            HomePageLogoLinkVersions viewModel = new HomePageLogoLinkVersions()
            {
                Id = pgMinisty.LogoLinkId ?? pgMinisty.Id,
                VersionStatusEnum  = pgMinisty.VersionStatusEnum,
                ChangeActionEnum   = pgMinisty.ChangeActionEnum,
                CreationDate       = pgMinisty.CreationDate,
                ModificationDate   = pgMinisty.ModificationDate,
                ModifiedById       = pgMinisty.ModifiedById,
                ApprovalDate       = pgMinisty.ApprovalDate,
                ApprovedById       = pgMinisty.ApprovedById,
                CreatedById        = pgMinisty.CreatedById,
                ArTitle            = pgMinisty.ArTitle,
                EnTitle            = pgMinisty.EnTitle,
                ImageUrl           = pgMinisty.ImageUrl,
                HomePageLogoLinkId = pgMinisty.LogoLinkId,
                Url = pgMinisty.Url
            };

            return(viewModel);
        }
 public void Add(HomePageLogoLinkVersions model)
 {
     _db.HomePageLogoLinkVersions.Add(model);
     _db.SaveChanges();
 }