View BusinessLogic.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BusinessLogic | |
{ | |
public CompanyDTO CompanyDto { get; set; } | |
public CompanyDM CompanyDm { get; set; } | |
public BusinessLogic(CompanyDTO dto, CompanyDM dm) | |
{ | |
CompanyDto = dto; | |
CompanyDm = dm; | |
} |
View BusinessLogic.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BusinessLogic | |
{ | |
public CompanyDTO CompanyDto { get; set; } | |
public CompanyDM CompanyDm { get; set; } | |
public BusinessLogic(CompanyDTO dto, CompanyDM dm) | |
{ | |
CompanyDto = dto; | |
CompanyDm = dm; | |
} |
View CompanyDM.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CompanyDM | |
{ | |
public int ID { get; set; } | |
public string CompanyName { get; set; } | |
public string ContactPersonName { get; set; } | |
public string ContactPersonEmail { get; set; } |
View Utility.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Utility | |
{ | |
........... | |
public string BillogramId = "PAsE6WY"; | |
........... | |
public async Task SendBillogram() | |
{ | |
await _billogramUtility.SendBillogram(BillogramId); |
View Utility.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Utility | |
{ | |
............ | |
public string billogramState ="unattested"; | |
public async Task<List<BillogramStructure>> GetBillogramsByState() | |
{ | |
List<BillogramStructure> billograms = _billogramUtility.GetBillogramsByState(billogramState).Result; | |
return billograms; |
View Utility.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public asyn Task<BillogramStructure> CreateBillogram() | |
{ | |
BillogramHelper billogramHelper = new BillogramHelper() | |
{ | |
CustomerStructure = new CustomerStructure() | |
{ | |
CustomerNo = CustomerNo | |
}, | |
Subscriptions = new BillogramItems() | |
{ |
View Utility.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void CreateCustomer() | |
{ | |
var model = new CustomerStructure() | |
{ | |
CustomerNo = 2, | |
CustomerName = "Some name", | |
CustomerCompanyType = "individual", | |
CustomerOrganizationNo = "", | |
CustomerVatNo = "", |
View Utility.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Utility | |
{ | |
private string _clientSecretUser; | |
private string _clientSecretKey; | |
private string _baseUrl; | |
private BillogramUtility _billogramUtility; | |
............. | |
public void Initialize() |
View App.Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<appSettings> | |
<add key="Billogram.AuthUser" value="5588-000000" /> | |
<add key="Billogram.AuthKey" value="7000552121211a8cfa16fe67693" /> | |
<add key="Billogram.BaseUrl" value="https://sandbox.billogram.com/api/v2/" /> | |
</appSettings> |
View Final Output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<h1> | |
This is a rendered template example. | |
</h1> | |
<div> | |
This example is ridiculous. | |
</div> | |
</body> |
NewerOlder