added controller stub. before changing idataaccess to abstract class
This commit is contained in:
@ -4,4 +4,8 @@
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\COA.EnterpriseServices.DataAccess\COA.EnterpriseServices.DataAccess.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -1,13 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace COA.EnterpriseServices.Creditor
|
||||
{
|
||||
public class CreditorController
|
||||
{
|
||||
}
|
||||
|
||||
public class SettlementController
|
||||
{
|
||||
|
||||
}
|
||||
}
|
27
COA.EnterpriseServices.Creditor/CreditorController.cs
Normal file
27
COA.EnterpriseServices.Creditor/CreditorController.cs
Normal file
@ -0,0 +1,27 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user