1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

renaming collection linq predicates

This commit is contained in:
Kyle Spearrin
2017-04-27 09:39:21 -04:00
parent 755da8c38f
commit 77aec3977c
9 changed files with 23 additions and 23 deletions

View File

@ -12,11 +12,11 @@ namespace Bit.Core.Models.Api
public IEnumerable<CollectionUser> ToCollectionUsers()
{
return Collections.Select(s => new CollectionUser
return Collections.Select(c => new CollectionUser
{
OrganizationUserId = new Guid(UserId),
CollectionId = new Guid(s.CollectionId),
ReadOnly = s.ReadOnly
CollectionId = new Guid(c.CollectionId),
ReadOnly = c.ReadOnly
});
}

View File

@ -79,7 +79,7 @@ namespace Bit.Core.Models.Api
{
if(collectionCiphers.ContainsKey(cipher.Id))
{
CollectionIds = collectionCiphers[cipher.Id].Select(s => s.CollectionId);
CollectionIds = collectionCiphers[cipher.Id].Select(c => c.CollectionId);
}
else
{
@ -91,7 +91,7 @@ namespace Bit.Core.Models.Api
string obj = "cipherDetails")
: base(cipher, obj)
{
CollectionIds = collectionCiphers.Select(s => s.CollectionId);
CollectionIds = collectionCiphers.Select(c => c.CollectionId);
}
public IEnumerable<Guid> CollectionIds { get; set; }
@ -105,7 +105,7 @@ namespace Bit.Core.Models.Api
{
if(collectionCiphers.ContainsKey(cipher.Id))
{
CollectionIds = collectionCiphers[cipher.Id].Select(s => s.CollectionId);
CollectionIds = collectionCiphers[cipher.Id].Select(c => c.CollectionId);
}
else
{

View File

@ -41,7 +41,7 @@ namespace Bit.Core.Models.Api
: base(organizationUser, "organizationUserDetails")
{
Collections = new ListResponseModel<OrganizationUserCollectionResponseModel>(
collections.Select(s => new OrganizationUserCollectionResponseModel(s)));
collections.Select(c => new OrganizationUserCollectionResponseModel(c)));
}
public ListResponseModel<OrganizationUserCollectionResponseModel> Collections { get; set; }