예제 #1
0
        private IEnumerable <OfficeDto> GetOffices()
        {
            var result = Task.Run(async() =>
                                  await _visitRepo.GetOfficesAsync(
                                      new OfficeParametersDto
            {
                PageSize  = 1000,
                Filters   = "isActive==true",
                SortOrder = "Name"
            })).ConfigureAwait(true);

            var response = result.GetAwaiter().GetResult();

            return(response.Items);
        }