Last active
August 29, 2015 14:26
-
-
Save Mirabis/dea27a2a90b26fdd7e7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public bool CanBuyMouse(User _user) | |
{ | |
if (_user.Level > 13) | |
{ // Require approval | |
return ApprovalSystem.Approve(_user, producttype: mouse) | |
} | |
else if(_user.Level.Between(12,3)) | |
{ // Below €50,- month | |
return _user.expenses < 50.00; | |
} | |
else | |
{ // Below €5000,- month | |
return _user.expenses < 5000.00; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment