int? productThumbPictureSize = null; int pictureSize = productThumbPictureSize.HasValue ? productThumbPictureSize.Value : _mediaSettings.ProductThumbPictureSize; if (blogPost.Picture != null) { var picture = _pictureService.GetPictureById(blogPost.Picture.Id); PictureModel pictureModel = new PictureModel(); pictureModel.ImageUrl = _pictureService.GetPictureUrl(picture, pictureSize); pictureModel.FullSizeImageUrl = _pictureService.GetPictureUrl(picture); model.PictureModel = pictureModel; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)