public bool BarCodeExistsed(string barcode)
        {
            int count = objBookService.GetCountByBarCode(barcode);

            if (count == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
 //判断图书条码是否存在
 public bool GetExitBarCode(string barCode)
 {
     return(objBookService.GetCountByBarCode(barCode) == 1);
 }