1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-10 15:13:29 +01:00
bitwarden-server/src/Core/Repositories/ICollectionRepository.cs

16 lines
467 B
C#
Raw Normal View History

2017-03-08 05:06:14 +01:00
using System;
using System.Threading.Tasks;
2017-03-09 03:45:08 +01:00
using Bit.Core.Models.Table;
2017-03-08 05:06:14 +01:00
using System.Collections.Generic;
namespace Bit.Core.Repositories
{
2017-04-27 15:19:30 +02:00
public interface ICollectionRepository : IRepository<Collection, Guid>
2017-03-08 05:06:14 +01:00
{
Task<int> GetCountByOrganizationIdAsync(Guid organizationId);
2017-04-27 15:19:30 +02:00
Task<ICollection<Collection>> GetManyByOrganizationIdAsync(Guid organizationId);
Task<ICollection<Collection>> GetManyByUserIdAsync(Guid userId);
2017-03-08 05:06:14 +01:00
}
}