public int Add(Model.Group group) { using (WebPortalEntities dataEntities = new WebPortalEntities()) { dataEntities.AddToGroups(group); return dataEntities.SaveChanges(); } }
public int Add(Model.Group group) { using (WebPortalEntities dataEntities = new WebPortalEntities()) { dataEntities.AddToGroups(group); return dataEntities.SaveChanges(); } }