Files
Backend-Api/ServiceHost/Areas/Admin/Controllers/PaymentTransactionController.cs
2025-07-09 13:15:05 +03:30

23 lines
801 B
C#

using CompanyManagment.App.Contracts.PaymentTransaction;
using Microsoft.AspNetCore.Mvc;
using ServiceHost.BaseControllers;
namespace ServiceHost.Areas.Admin.Controllers;
public class PaymentTransactionController : AdminBaseController
{
private readonly IPaymentTransactionApplication _paymentTransactionApplication;
public PaymentTransactionController(IPaymentTransactionApplication paymentTransactionApplication)
{
_paymentTransactionApplication = paymentTransactionApplication;
}
[HttpGet]
public async Task<ActionResult<List<GetPaymentTransactionListViewModel>>> GetList(
GetPaymentTransactionListSearchModel searchModel)
{
var res = await _paymentTransactionApplication.GetPaymentTransactionList(searchModel);
return res;
}
}