public void UpdateAdvert(sporteventstable advert) { //context.Entry(advert).State = EntityState.Modified; }
public void InsertAdvert(sporteventstable advert) { context.sporteventstables.Add(advert); }