25 lines
788 B
C#
25 lines
788 B
C#
using AccountManagement.Application.Contracts.Account;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using ServiceHost.BaseControllers;
|
|
|
|
namespace ServiceHost.Areas.Admin.Controllers;
|
|
|
|
public class AccountController:AdminBaseController
|
|
{
|
|
private readonly IAccountApplication _accountApplication;
|
|
|
|
public AccountController(IAccountApplication accountApplication)
|
|
{
|
|
_accountApplication = accountApplication;
|
|
}
|
|
/// <summary>
|
|
/// سلکت لیست اکانت های ادمین برای جستجو
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("select_list")]
|
|
public async Task<ActionResult<List<AccountSelectListViewModel>>> GetAdminAccountsSelectList()
|
|
{
|
|
var res = await _accountApplication.GetAdminSelectList();
|
|
return res;
|
|
}
|
|
} |