public void DeleteSeries(int seriesID) { Entities.LibEntities dbCtx = new Entities.LibEntities(); Entities.Series bkUpdate = dbCtx.Series.First(b => b.SeriesID == seriesID); dbCtx.Series.Remove(bkUpdate); dbCtx.SaveChanges(); }
public void InsertSeries(Entities.Series objSeries) { Entities.LibEntities dbCtx = new Entities.LibEntities(); dbCtx.Series.Add(objSeries); dbCtx.SaveChanges(); }