Exemplo n.º 1
0
        public async Task <TodayRecommendAppDto> GetTodayRecommendAsync(Int32 userId)
        {
            Check.IfNullOrZero(userId);

            var result = await _appContext.GetTodayRecommendAsync(userId);

            result.AppIcon = result.IsIconByUpload ? $@"{ Appsetting.FileUrl}{ result.AppIcon}" : result.AppIcon;
            if (result == null)
            {
                result = new TodayRecommendAppDto();
            }

            return(result);
        }