public void Update(SocialIcon entity) { SocialIcon socialToUpdate = context.SocialIcon.FirstOrDefault(x => x.Id == entity.Id); socialToUpdate.Link = entity.Link; context.SaveChanges(); }
public ActionResult Update(SocialIcon socialIcon) { if (Convert.ToInt32(Session["RolId"].ToString()) == 1) { _socialIconService.Update(socialIcon); } return(RedirectToAction("List", "SocialIcon")); }
public SocialLinks() { _list = SocialIcon.AppSocialIcons(); }
public void Update(SocialIcon entity) { _socialIconDal.Update(entity); }
public void Add(SocialIcon entity) { _socialIconDal.Add(entity); }
public SocialIcon GetElementByName(string productName) { SocialIcon search = context.SocialIcon.FirstOrDefault(x => x.Name == productName); return(search); }
public void Add(SocialIcon entity) { context.SocialIcon.Add(entity); context.SaveChanges(); }
public SocialLinksViewComponent() { this.socialIcons = SocialIcon.GetAppSocialIcons(); }
private void Awake() { Inst = this; }