Created
February 19, 2017 12:11
-
-
Save angelovstanton/483625c4cd4e3ee073af41cd7c1ba03e 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(nameof(email) + " cannot be null or empty."); | |
} | |
if (string.IsNullOrEmpty(password)) | |
{ | |
throw new ArgumentException(nameof(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