public async Task <EmployerViewModel> GetEmployerAsync(Guid id) { GetEmployerByIdQuery request = new GetEmployerByIdQuery(id); return(await _mediator.Send(request)); }
public async Task <EmployerViewModel> GetEmployerAsync() { GetEmployerByIdQuery request = new GetEmployerByIdQuery(Guid.Parse(User.FindFirstValue(ClaimTypes.NameIdentifier))); return(await _mediator.Send(request)); }