I have a winform that allows a user to input value in it’s full form and in shortened form (think gmail – that allows to login with username and with username@gmail.com).
In the server, I have a method that accepts the value in it’s full-form variation (username@gmail.com).
Where should the auto-complete occur; in client, or in server? Should the form convert the “username” to “username@gmail.com” and send it to server, or should the server accept both variations (in reality – a lot more variations than 2) and convert to full-form?
Winform with wcf server.
I agree with @Saurabh, keep it in the client, as this is not related to domain logic, and merely to simplify the user experience.
Keep your server clean 🙂