2020-10-15 12:48:11 +00:00
|
|
|
|
namespace COA.EnterpriseServices.Creditors
|
|
|
|
|
{
|
|
|
|
|
public class CreditorController
|
|
|
|
|
{
|
|
|
|
|
private readonly CreditorLibrary creditorLibrary;
|
|
|
|
|
|
|
|
|
|
public CreditorController(CreditorLibrary creditorLibrary)
|
|
|
|
|
{
|
|
|
|
|
this.creditorLibrary = creditorLibrary;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetCreditorStatus(int creditorId)
|
|
|
|
|
{
|
|
|
|
|
return creditorLibrary.GetCreditorStatus(creditorId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool SetCreditorStatus(int creditorId, string status)
|
|
|
|
|
{
|
|
|
|
|
return creditorLibrary.SetCreditorStatus(creditorId, status);
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-15 13:34:25 +00:00
|
|
|
|
public void AddOfferResponse(OfferResponse response)
|
2020-10-15 12:48:11 +00:00
|
|
|
|
{
|
2020-10-15 13:34:25 +00:00
|
|
|
|
creditorLibrary.AddOfferResponse(response);
|
2020-10-15 12:48:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|