commodore73

Block Model for Image Element

Jul 23rd, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1.  
  2. namespace Root.Core.Models.GlobalFields.Elements
  3. {
  4.     using Root.Core.Models.Fields;
  5.  
  6.     public class ImageElement : ElementBase
  7.     {
  8.         public override ElementType ElementType { get; set; } = ElementType.Image;
  9.         public override string PartialView { get; set; } = "__image";
  10.         public MediaField? Asset { get; set; }
  11.     }
  12. }
Add Comment
Please, Sign In to add comment