Sending WhatsApp Message using C# Code

How to send a WhatsApp message In C#. The same code works in ASP.NET web app or a Windows Forms or WPF app.