Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 19, 2017 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/483625c4cd4e3ee073af41cd7c1ba03e to your computer and use it in GitHub Desktop.
Save angelovstanton/483625c4cd4e3ee073af41cd7c1ba03e to your computer and use it in GitHub Desktop.
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