You may directly open .Net Integration Demo Project using Visual Studio. Demo project has UI and backend code to show integration of each available e-Way Bill library method corresponding to respective API in your application.
Before you start using e-Way Bill Lib. First thing to watch for is EWBSession class.
This class includes EWBSettings class & EWBLoginDetails class
EWBSettings – The common settings for all TaxPayers. In case ASP application has multiple TaxPayer support, values in in Settings would remain same.
EWBLoginDetails – TaxPayer specific settings. In case ASP application has multiple TaxPayer support, values of login details changes taxpayer to taxpayer .
To avoid TLS 1.2 Connection error, write provided below code in application start up
for .Net framework 4.6 and above TLS1.2 is already supported