Exemplo n.º 1
0
    public List<CreateBookSystem> setBookReturnDataBase(CreateBookSystem bookSystemData)
    {
        AdministrationDataBase aDB = new AdministrationDataBase();
        aDB.libraryFunction();
        List<CreateBookSystem> returnValue = new List<CreateBookSystem>();
        if (int.Parse(aDB._StaffhaveRoles[3]) == 1)
        {
            returnValue=aDB.setBookReturnDataBase(bookSystemData);

        }
        else
        {
            CreateBookSystem addVlaue = new CreateBookSystem();
            addVlaue.checkNo = _noRole;
            addVlaue.errorMsg = _errorMsg;
            returnValue.Add(addVlaue);
        }
        return returnValue;
    }