Knocks/BackEnd/Knoks.Api/Controllers/TestsController.cs

48 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Knoks.Api.Controllers.Base;
using Knoks.Core.Logic.Interfaces;
using Knoks.Core.Entities;
using Knoks.Core.Entities.Args;
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace Knoks.Api.Controllers
{
[Route("v1/[controller]")]
public class TestsController : ApiConsumerController
{
private readonly ISystemConfigurationManager _systemConfigurationManager;
public TestsController(ISystemConfigurationManager systemConfigurationManager)
{
_systemConfigurationManager = systemConfigurationManager;
}
[HttpPut("SystemConfiguration")]
public async Task<SystemConfiguration> UpdateSystemConfiguration([FromBody]SystemConfigurationArgs args)
{
return await _systemConfigurationManager.UpdateSystemConfiguration(args);
}
//[HttpGet("ProcessOverdureEscalation")]
//public async Task<SystemConfiguration> ProcessOverdureEscalation()
//{
// await _loanManager.ProcessOverdureEscalation();
// return null;
//}
//[HttpGet("PayToLenders")]
//public async Task<SystemConfiguration> PayToLenders()
//{
// await _loanManager.PayToLenders();
// return null;
//}
}
}