Esempio n. 1
0
        public object DeleteHcDoctorTimesInfoById(object param)
        {
            Database db     = DatabaseFactory.CreateDatabase();
            object   retObj = null;

            using (DbConnection connection = db.CreateConnection())
            {
                connection.Open();
                DbTransaction transaction = connection.BeginTransaction();
                try
                {
                    HcDoctorTimesDAL hcDoctorTimesDAL = new HcDoctorTimesDAL();
                    retObj = (object)hcDoctorTimesDAL.DeleteHcDoctorTimesInfoById(param, db, transaction);
                    transaction.Commit();
                }
                catch
                {
                    transaction.Rollback();
                    throw;
                }
                finally
                {
                    connection.Close();
                }
            }
            return(retObj);
        }
Esempio n. 2
0
        public object GetSingleHcDoctorTimesRecordById(object param)
        {
            object           retObj           = null;
            HcDoctorTimesDAL hcDoctorTimesDAL = new HcDoctorTimesDAL();

            retObj = (object)hcDoctorTimesDAL.GetSingleHcDoctorTimesRecordById(param);
            return(retObj);
        }