diff --git a/src/Api/Controllers/SitesController.cs b/src/Api/Controllers/SitesController.cs index f24b5c49bd..d3441d77ca 100644 --- a/src/Api/Controllers/SitesController.cs +++ b/src/Api/Controllers/SitesController.cs @@ -46,7 +46,7 @@ namespace Bit.Api.Controllers { var sites = await _siteRepository.GetManyByUserIdAsync(User.GetUserId(), dirty); - var responses = sites.Select(s => new SiteResponseModel(s)); + var responses = sites.Select(s => new SiteResponseModel(s)).ToList(); await ExpandManyAsync(sites, responses, expand, null); return new ListResponseModel(responses); } @@ -108,7 +108,7 @@ namespace Bit.Api.Controllers } } - private async Task ExpandManyAsync(IEnumerable sites, IEnumerable responses, string[] expand, IEnumerable folders) + private async Task ExpandManyAsync(IEnumerable sites, ICollection responses, string[] expand, IEnumerable folders) { if(expand == null || expand.Count() == 0) {