|
@@ -80,6 +80,10 @@ namespace GxPress.Repository.Implement.Navigation
|
|
|
model.Sort = request.Sort;
|
|
|
if (request.Terminal > 0)
|
|
|
model.Terminal = request.Terminal;
|
|
|
+ if (!string.IsNullOrEmpty(request.ActionUrl))
|
|
|
+ model.ActionUrl = request.ActionUrl;
|
|
|
+ if (!string.IsNullOrEmpty(request.ControllerUrl))
|
|
|
+ model.ControllerUrl = request.ControllerUrl;
|
|
|
return await _repository.UpdateAsync(model);
|
|
|
}
|
|
|
return false;
|
|
@@ -180,9 +184,9 @@ namespace GxPress.Repository.Implement.Navigation
|
|
|
query.ForPage(1, 10);
|
|
|
var medias = await _mediaRepository.GetAllAsync(query);
|
|
|
navigationMediaResult.MediaResults = medias.Select(n => _mapper.Map<MediaResult>(n)).ToList();
|
|
|
- foreach (var itemMedia in navigationMediaResult.MediaResults)
|
|
|
+ foreach (var itemMedia in navigationMediaResult.MediaResults)
|
|
|
{
|
|
|
- itemMedia.ImageUrls=StringUtils.AddDomain(itemMedia.ImageUrls);
|
|
|
+ itemMedia.ImageUrls = StringUtils.AddDomain(itemMedia.ImageUrls);
|
|
|
}
|
|
|
result.Add(navigationMediaResult);
|
|
|
}
|