Created
February 19, 2017 12:11
-
-
Save angelovstanton/225bb2e3fa2ccaff39ecf1ab014aeb9b to your computer and use it in GitHub Desktop.
This file contains 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 void Login(string email, string password) | |
{ | |
if (string.IsNullOrEmpty(email)) | |
{ | |
throw new ArgumentException("Email cannot be null or empty."); | |
} | |
if (string.IsNullOrEmpty(password)) | |
{ | |
throw new ArgumentException("Password cannot be null or empty."); | |
} | |
// login the user | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment