Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <ActionResult <List <EmployerDto> > > GetAllEmployers([FromQuery] int?subscriptionId) { var schedules = subscriptionId == null ? await _employerService.GetEmployersAsync() : await _employerService.GetEmployersBySubscriptionIdAsync(subscriptionId.Value); var response = _mapper.Map <List <EmployerDto> >(schedules); return(Ok(response)); }