コード例 #1
0
ファイル: TypeFactory.cs プロジェクト: hiepnx/quanlytauhang
        public static int Insert(tblType type)
        {
            var db = new dbTrainEntities(ConnectionController.GetConnection());

            type.CreatedDate  = CommonFactory.GetCurrentDate();
            type.ModifiedDate = CommonFactory.GetCurrentDate();
            db.AddTotblTypes(type);

            return(db.SaveChanges());
        }