Add project files.

This commit is contained in:
2023-04-29 09:17:17 +03:00
commit 62178f1f32
493 changed files with 45863 additions and 0 deletions
@@ -0,0 +1,20 @@
namespace MyOffice.Data.Repositories.Users;
using Models.Users;
public interface IUserExternalRepository
{
Task<int> AddUserExternalAsync(UserExternal external);
int AddUserExternal(UserExternal external);
Task<int> AddUserExternalsAsync(IEnumerable<UserExternal> claims);
Task<List<UserExternal>> GetUserExternalsByUserIdAsync(Guid userId);
Task<UserExternal?> GetByUserIdAsync(Guid userId, string provider);
UserExternal? GetByUserId(Guid userId, string provider);
UserExternal? GetByExternalId(string externalId, string provider);
Task<UserExternal?> GetByExternalIdAsync(string externalId, string provider);
void RemoveUserExternal(UserExternal userExternal);
}