-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathApplicantProfileController.cs
More file actions
31 lines (28 loc) · 1.14 KB
/
ApplicantProfileController.cs
File metadata and controls
31 lines (28 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Unity.GrantManager.Applicants;
using Unity.GrantManager.Controllers.Authentication;
using Volo.Abp.AspNetCore.Mvc;
namespace Unity.GrantManager.Controllers
{
[ApiController]
[Route("api/app/applicant-profiles")]
[ServiceFilter(typeof(ApiKeyAuthorizationFilter))]
public class ApplicantProfileController(IApplicantProfileAppService applicantProfileAppService) : AbpControllerBase
{
[HttpGet]
[Route("profile")]
public async Task<IActionResult> GetApplicantProfileAsync([FromQuery] TenantedApplicantProfileRequest applicantProfileRequest)
{
var profile = await applicantProfileAppService.GetApplicantProfileAsync(applicantProfileRequest);
return Ok(profile);
}
[HttpGet]
[Route("tenants")]
public async Task<IActionResult> GetApplicantProfileTenantsAsync([FromQuery] ApplicantProfileRequest applicantProfileRequest)
{
var tenants = await applicantProfileAppService.GetApplicantTenantsAsync(applicantProfileRequest);
return Ok(tenants);
}
}
}