Add [FromBody] attribute to AuthenticateEmployer method parameter

This commit is contained in:
MahanCh
2025-09-07 11:54:20 +03:30
parent 5f7c27e45c
commit 0701b334e4

View File

@@ -59,7 +59,7 @@ namespace ServiceHost.Areas.Admin.Controllers
return result;
}
[HttpPost("auth-employer")]
public async Task<ActionResult<OperationResult<AuthenticateUserViewModel>>> AuthenticateEmployer(AuthenticateEmployerWorkflowRequest command)
public async Task<ActionResult<OperationResult<AuthenticateUserViewModel>>> AuthenticateEmployer( [FromBody]AuthenticateEmployerWorkflowRequest command)
{
var result = await _employerApplication.AuthenticateEmployer(command.NationalCode, command.DateOfBirth, command.Mobile);
return result;