Esempio n. 1
0
        public static int Insert(tblGroup group)
        {
            var db = new dbTrainEntities(ConnectionController.GetConnection());

            group.CreatedDate  = CommonFactory.GetCurrentDate();
            group.ModifiedDate = CommonFactory.GetCurrentDate();
            db.AddTotblGroups(group);
            int re = db.SaveChanges();

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