public List<CreateBookBorrow> searchBookDateData(SearchBookStatistics BookStatisticsData) { AdministrationDataBase aDB = new AdministrationDataBase(); aDB.libraryFunction(); List<CreateBookBorrow> returnValue = new List<CreateBookBorrow>(); if (int.Parse(aDB._StaffhaveRoles[3]) == 1) { returnValue = aDB.SearchBookDate(BookStatisticsData); } else { CreateBookBorrow addValue=new CreateBookBorrow(); addValue.checkNo = _noRole; addValue.errorMsg = _errorMsg; returnValue.Add(addValue); } return returnValue; }