public Association SaveAssociation(Association association) { using (var context = new AdExpressDBContext()) { context.Entry(association).State = EntityState.Modified; context.SaveChanges(); return(association); } }
public Newspaper SaveNewspaper(Newspaper newspaper) { using (var context = new AdExpressDBContext()) { context.Entry(newspaper).State = EntityState.Modified; context.SaveChanges(); return(newspaper); } }