public UserAuthenticationProfile UserAuthorizationByService(AuthenticationServices serviceType) { return(GetData().Where(ua => ua.Service == serviceType.ToString()).FirstOrDefault()); }
public void DisconnectService(AuthenticationServices serviceType, Guid userId) { UserAuthenticationProfile profile = GetData().Where(p => p.UserID == userId && p.Service == serviceType.ToString()).FirstOrDefault(); GetRepository <UserAuthenticationProfile>().Delete(profile); }