how to check if data already exists in database in csharp mvc
Code Example - how to check if data already exists in database in csharp mvc
private bool UserExists(string id)
{
return _context.Users.Any(e => e.UserId == id);
}