public int Add(Model.Setting setting) { using (WebPortalEntities dataEntities = new WebPortalEntities()) { dataEntities.AddToSettings(setting); return dataEntities.SaveChanges(); } }
public int Add(Model.Setting setting) { using (WebPortalEntities dataEntities = new WebPortalEntities()) { dataEntities.AddToSettings(setting); return dataEntities.SaveChanges(); } }