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;
}
///
/// سلکت لیست اکانت های ادمین برای جستجو
///
///
[HttpGet("select_list")]
public async Task>> GetAdminAccountsSelectList()
{
var res = await _accountApplication.GetAdminSelectList();
return res;
}
}