using System; using System.Collections.Generic; using System.Data; using System.Threading.Tasks; namespace Ombi.Store.Repository { public interface IExternalUserRepository where T : Entity { T Get(string id); T Get(int id); Task GetAsync(string id); Task GetAsync(int id); T GetUser(string userGuid); Task GetUserAsync(string userguid); T GetUserByUsername(string username); IEnumerable Custom(Func> func); long Insert(T entity); void Delete(T entity); IEnumerable GetAll(); bool UpdateAll(IEnumerable entity); bool Update(T entity); Task> GetAllAsync(); Task UpdateAsync(T users); Task InsertAsync(T users); } }