28 lines
697 B
C#
28 lines
697 B
C#
|
using COA.EnterpriseServices.DataAccess.Helpers;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace COA.EnterpriseServices.Creditor
|
|||
|
{
|
|||
|
public class CreditorController
|
|||
|
{
|
|||
|
private readonly CreditorHelper creditorHelper;
|
|||
|
|
|||
|
public CreditorController(CreditorHelper creditorHelper)
|
|||
|
{
|
|||
|
this.creditorHelper = creditorHelper;
|
|||
|
}
|
|||
|
|
|||
|
public string GetCreditorStatus(int creditorId)
|
|||
|
{
|
|||
|
var creditor = creditorHelper.GetCreditor(creditorId);
|
|||
|
|
|||
|
return creditor.Status;
|
|||
|
}
|
|||
|
|
|||
|
public bool SetCreditorStatus(int creditorId, string status)
|
|||
|
{
|
|||
|
return creditorHelper.SetCreditorStatus(creditorId, status);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|