2017-05-08 14:08:44 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
using Bit.Core.Models.Table;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IGroupRepository : IRepository<Group, Guid>
|
|
|
|
|
|
{
|
2017-05-08 22:14:01 -04:00
|
|
|
|
Task<Tuple<Group, ICollection<Guid>>> GetByIdWithCollectionsAsync(Guid id);
|
2017-05-08 14:08:44 -04:00
|
|
|
|
Task<ICollection<Group>> GetManyByOrganizationIdAsync(Guid organizationId);
|
2017-05-08 22:14:01 -04:00
|
|
|
|
Task CreateAsync(Group obj, IEnumerable<Guid> collectionIds);
|
|
|
|
|
|
Task ReplaceAsync(Group obj, IEnumerable<Guid> collectionIds);
|
2017-05-08 14:08:44 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|