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