public async Task <UserIdentity> GetFirstUserIdentityByUserId(Guid userId, IdentityType type) { return(await _repository.Find(x => x.UserId == userId && x.IdentityType == type).SingleOrDefaultAsync()); }