Exemplo n.º 1
0
        public static int Insert(tblUserInGroup userGroup)
        {
            var db = new dbTrainEntities(ConnectionController.GetConnection());

            db.AddTotblUserInGroups(userGroup);
            int re = db.SaveChanges();

            db.Connection.Close();
            return(re);
        }