Created
May 6, 2019 08:06
-
-
Save nishanc/26fff6fc992546a220776d6c69310ebb 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 async Task<bool> UserExists(string username) | |
{ | |
if (await _context.Users.AnyAsync(x => x.Username == username)) | |
return true; | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment