Пример #1
0
        public object DeleteHcGuidemasterInfoById(object param)
        {
            Database db     = DatabaseFactory.CreateDatabase();
            object   retObj = null;

            using (DbConnection connection = db.CreateConnection())
            {
                connection.Open();
                DbTransaction transaction = connection.BeginTransaction();
                try
                {
                    HcGuidemasterDAL hcGuidemasterDAL = new HcGuidemasterDAL();
                    retObj = (object)hcGuidemasterDAL.DeleteHcGuidemasterInfoById(param, db, transaction);
                    transaction.Commit();
                }
                catch
                {
                    transaction.Rollback();
                    throw;
                }
                finally
                {
                    connection.Close();
                }
            }
            return(retObj);
        }
Пример #2
0
        public object GetSingleHcGuidemasterRecordById(object param)
        {
            object           retObj           = null;
            HcGuidemasterDAL hcGuidemasterDAL = new HcGuidemasterDAL();

            retObj = (object)hcGuidemasterDAL.GetSingleHcGuidemasterRecordById(param);
            return(retObj);
        }