public string[] createPurchaseDataBase(CreatePurchase purchaseData) { OtherDataBase sDB = new OtherDataBase(); if (int.Parse(sDB._StaffhaveRoles[2]) == 1) { return sDB.createPurchaseDataBase(purchaseData); } else { return new string[2] { _noRole, _errorMsg }; } }