Ejemplo n.º 1
0
        private IEnumerable <VisitStateDto> GetVisitStates()
        {
            var result = Task.Run(async() =>
                                  await _visitRepo.GetVisitStatesAsync(
                                      new VisitStateParametersDto
            {
                PageSize  = 1000,
                Filters   = "isActive==true",
                SortOrder = "Name"
            })).ConfigureAwait(true);

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

            return(response.Items);
        }