Add [FromBody] attribute to AuthenticateEmployer method parameter
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user