Files
server/src/Core/Repositories/IGrantRepository.cs

17 lines
531 B
C#
Raw Normal View History

using System;
using System.Threading.Tasks;
2017-03-08 21:45:08 -05:00
using Bit.Core.Models.Table;
using System.Collections.Generic;
namespace Bit.Core.Repositories
{
public interface IGrantRepository
{
Task<Grant> GetByKeyAsync(string key);
Task<ICollection<Grant>> GetManyAsync(string subjectId, string sessionId, string clientId, string type);
Task SaveAsync(Grant obj);
Task DeleteByKeyAsync(string key);
Task DeleteManyAsync(string subjectId, string sessionId, string clientId, string type);
}
}