示例#1
0
 public string GetImageUrl(Picture picture)
 {
     if (!string.IsNullOrEmpty(picture.FileName) && !string.IsNullOrEmpty(picture.RelativePath))
     {
         return(applicationSettingsService.GetImagesUrl() + picture.RelativePath + picture.FileName + ".jpg");
     }
     else
     {
         //InsertImage()
         return(picture.Url);
     }
 }