private IEnumerable <EmployeeDto> GetEmployees() { var result = Task.Run(async() => await _visitRepo.GetEmployeesAsync( new EmployeeParametersDto { PageSize = 1000, Filters = "isActive==true", SortOrder = "FirstName" })).ConfigureAwait(true); var response = result.GetAwaiter().GetResult(); return(response.Items); }