Re-fabrication
This commit is contained in:
parent
f155a47073
commit
cb6309abdb
499 changed files with 7574 additions and 12530 deletions
22
Yavsc.Server/Services/SIRENCheker.cs
Normal file
22
Yavsc.Server/Services/SIRENCheker.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Yavsc.Helpers;
|
||||
|
||||
namespace Yavsc.Services
|
||||
{
|
||||
using Models.societe.com;
|
||||
public class SIRENChecker
|
||||
{
|
||||
private CompanyInfoSettings _settings;
|
||||
public SIRENChecker(CompanyInfoSettings settings)
|
||||
{
|
||||
_settings = settings;
|
||||
}
|
||||
public async Task<CompanyInfoMessage> CheckAsync(string siren) {
|
||||
using (var web = new HttpClient())
|
||||
{
|
||||
return await web.CheckSiren(siren, _settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue