How to login correctly?
I have a login to facebook and if the user is not in my DB then I add him
after the login, but If he is already exists I shouldn't do anything.
My question is how should I deal with it?
To make one more query to the DB that checks if user exists - before
adding it.
To let WCF catch it with UpdateException, and throw it to the client.
Other option?
No comments:
Post a Comment