Ejemplo n.º 1
0
        public void Update(SocialIcon entity)
        {
            SocialIcon socialToUpdate = context.SocialIcon.FirstOrDefault(x => x.Id == entity.Id);

            socialToUpdate.Link = entity.Link;
            context.SaveChanges();
        }
Ejemplo n.º 2
0
 public ActionResult Update(SocialIcon socialIcon)
 {
     if (Convert.ToInt32(Session["RolId"].ToString()) == 1)
     {
         _socialIconService.Update(socialIcon);
     }
     return(RedirectToAction("List", "SocialIcon"));
 }
 public SocialLinks()
 {
     _list = SocialIcon.AppSocialIcons();
 }
Ejemplo n.º 4
0
 public void Update(SocialIcon entity)
 {
     _socialIconDal.Update(entity);
 }
Ejemplo n.º 5
0
 public void Add(SocialIcon entity)
 {
     _socialIconDal.Add(entity);
 }
Ejemplo n.º 6
0
        public SocialIcon GetElementByName(string productName)
        {
            SocialIcon search = context.SocialIcon.FirstOrDefault(x => x.Name == productName);

            return(search);
        }
Ejemplo n.º 7
0
 public void Add(SocialIcon entity)
 {
     context.SocialIcon.Add(entity);
     context.SaveChanges();
 }
 public SocialLinksViewComponent()
 {
     this.socialIcons = SocialIcon.GetAppSocialIcons();
 }
Ejemplo n.º 9
0
 private void Awake()
 {
     Inst = this;
 }