コード例 #1
0
ファイル: EFSocialIconDal.cs プロジェクト: beratzmen/Corp_Cms
        public void Update(SocialIcon entity)
        {
            SocialIcon socialToUpdate = context.SocialIcon.FirstOrDefault(x => x.Id == entity.Id);

            socialToUpdate.Link = entity.Link;
            context.SaveChanges();
        }
コード例 #2
0
 public ActionResult Update(SocialIcon socialIcon)
 {
     if (Convert.ToInt32(Session["RolId"].ToString()) == 1)
     {
         _socialIconService.Update(socialIcon);
     }
     return(RedirectToAction("List", "SocialIcon"));
 }
コード例 #3
0
 public SocialLinks()
 {
     _list = SocialIcon.AppSocialIcons();
 }
コード例 #4
0
 public void Update(SocialIcon entity)
 {
     _socialIconDal.Update(entity);
 }
コード例 #5
0
 public void Add(SocialIcon entity)
 {
     _socialIconDal.Add(entity);
 }
コード例 #6
0
ファイル: EFSocialIconDal.cs プロジェクト: beratzmen/Corp_Cms
        public SocialIcon GetElementByName(string productName)
        {
            SocialIcon search = context.SocialIcon.FirstOrDefault(x => x.Name == productName);

            return(search);
        }
コード例 #7
0
ファイル: EFSocialIconDal.cs プロジェクト: beratzmen/Corp_Cms
 public void Add(SocialIcon entity)
 {
     context.SocialIcon.Add(entity);
     context.SaveChanges();
 }
コード例 #8
0
 public SocialLinksViewComponent()
 {
     this.socialIcons = SocialIcon.GetAppSocialIcons();
 }
コード例 #9
0
ファイル: SocialIcon.cs プロジェクト: PhilipMantrov/Jeka3
 private void Awake()
 {
     Inst = this;
 }