Sign-in and reward users with in-app coins

I wanted to make a function where user can log in everyday to earn 50 coins for my app. The app is running on ASP.net MVC C#. Anyone have any recommendations which programming style should I use? Should I use AJAX?