public Task <IList <UserLoginInfo> > GetLoginsAsync(User user) { if (user == null) { throw new ArgumentNullException("user"); } return(Task.Factory.StartNew(() => { return (IList <UserLoginInfo>)externalLoginRepository.FindLogins(user.Id).Result; })); }