I am creating a web application which uses Web api.
Our Mvc Web application send mail information through an object of model to web api using httpPost. Api in turn calls another class library project to send mail where i have put reference to mail.dll
So now, where do i keep license file and where to i put the code:
new FileIOPermission(FileIOPermissionAccess.Read, fileName).Assert();
and
string fileName = Limilabs.Mail.Licensing.LicenseHelper.GetLicensePath();
LicenseStatus status = Limilabs.Mail.Licensing.LicenseHelper.GetLicenseStatus();
and do i need to put that code in global.asax
Please help. Thanks