In this article we will just learn the procedure for creating a simple WCF service instead of a theoretical explanation, so let us start creating a simple WCF application.
- "Start" - "All Programs" - "Microsoft Visual Studio 2010".
- "File" - "New Project" - "C#" - WCF Service Application.
- Provide the project name such as AgecalculatorService or another as you wish and specify the location.
Then then I created an object of date time and passed those variables that I get from the users. I declared another variable in the method that is datetodays to store the number of days remaining from the user's input date to the current date and finally I return that variable.