public EntryPictureFileContract(EntryPictureFile picture) { ParamIs.NotNull(() => picture); EntryType = picture.EntryType; FileName = picture.FileName; Id = picture.Id; Mime = picture.Mime; Name = picture.Name; }
public ArchivedEntryPictureFileContract(EntryPictureFile entryPictureFile) { ParamIs.NotNull(() => entryPictureFile); Author = new ObjectRefContract(entryPictureFile.Author); Created = entryPictureFile.Created; Id = entryPictureFile.Id; Mime = entryPictureFile.Mime; Name = entryPictureFile.Name; }
public EntryPictureFileContract(EntryPictureFile picture) { ParamIs.NotNull(() => picture); EntryType = picture.EntryType; FileName = picture.FileName; Id = picture.Id; Mime = picture.Mime; Name = picture.Name; ThumbUrl = ImageHelper.GetImageUrlThumb(this); }
public static string GetImagePathThumb(EntryPictureFile picture) { return GetImagePath(picture.EntryType, EntryPictureFile.GetFileNameThumb(picture.Id, picture.Mime)); }