예제 #1
0
 public List<CreateBookSystem> createBookSystemDataBase(CreateBookSystem bookSystemData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.libraryFunction();
     List<CreateBookSystem> returnValue = new List<CreateBookSystem>();
     if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     {
         returnValue=aDB.createBookSystemDataBase(bookSystemData);
     }
     else
     {
         CreateBookSystem addValue = new CreateBookSystem();
         addValue.checkNo = _noRole;
         addValue.errorMsg = _errorMsg;
         returnValue.Add(addValue);
     }
     return returnValue;
 }