public bool BarCodeIsExisted(string barCode) { int count = bookDao.GetCountByCarCode(barCode); if (count == 1) { return(true); } else { return(false); } }