コード例 #1
0
 public UserAuthenticationProfile UserAuthorizationByService(AuthenticationServices serviceType)
 {
     return(GetData().Where(ua => ua.Service == serviceType.ToString()).FirstOrDefault());
 }
コード例 #2
0
        public void DisconnectService(AuthenticationServices serviceType, Guid userId)
        {
            UserAuthenticationProfile profile = GetData().Where(p => p.UserID == userId && p.Service == serviceType.ToString()).FirstOrDefault();

            GetRepository <UserAuthenticationProfile>().Delete(profile);
        }