public group getGroup(string id) { group gr = database.groups.First(data => data.idgroups == id); return(gr); }
public void deleteGroup(string id) { group gr = database.groups.First(data => data.idgroups == id); database.groups.Remove(gr); }
public void insertGroup(ref group gr) { database.groups.Add(gr); database.SaveChanges(); }