示例#1
0
        public async Task <PortfolioStrategy> GetUserSettingsAsync(object userId)
        {
            var item = await GetSettingsById(userId);

            if (item == null)
            {
                return(null);
            }

            return(UserModelFactory.CreateUserSettingsFromAWS(item));
        }
示例#2
0
 public async Task <PortfolioStrategy> GetUserSettingsByUserNameAsync(string email)
 {
     return(UserModelFactory.CreateUserSettingsFromAWS(await GetSettingsByEmailAsync(email)));
 }