Example #1
0
 public bool updateProjectorInformation_MACBll(ProjectorInformation_MAC pmac, string SQLCommand)
 {
     if (pimac.updateProjectorInformation_MACDal(pmac, SQLCommand) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
        public int updateProjectorInformation_MACDal(ProjectorInformation_MAC pmac, string SQLCommand)
        {
            string sql = SQLhelp.GetSQLCommand(SQLCommand);

            SqlParameter[] pms = new SqlParameter[]
            {
                new SqlParameter("@MAC", SqlDbType.VarChar, 80)
                {
                    Value = pmac.MAC
                },
                new SqlParameter("@selectedTab", SqlDbType.VarChar, 50)
                {
                    Value = pmac.selectedTab
                },
                new SqlParameter("@LHSX", SqlDbType.Bit)
                {
                    Value = pmac.LHSX
                }
            };

            return(SQLhelp.ExecuteNonQuery(sql, CommandType.Text, pms));
        }