/// <summary> /// Default constructor. Creates a new model. /// </summary> /// <param name="isfolder">Whether this is a folder or not.</param> public EditModel(bool isfolder, Guid parentid) { Permalink = new Models.Permalink() { Id = Guid.NewGuid(), NamespaceId = Config.MediaNamespaceId, Type = Models.Permalink.PermalinkType.MEDIA }; Content = new Paladino.Models.Content() { Id = Guid.NewGuid(), IsFolder = isfolder, ParentId = parentid, PermalinkId = Permalink.Id }; Extensions = Content.GetExtensions(true); GetMetaData(); }
/// <summary> /// Default constructor. Creates a new model. /// </summary> /// <param name="isfolder">Whether this is a folder or not.</param> public EditModel(bool isfolder, Guid parentid) { Permalink = new Models.Permalink() { Id = Guid.NewGuid(), NamespaceId = Config.MediaNamespaceId, Type = Models.Permalink.PermalinkType.MEDIA }; Content = new Piranha.Models.Content() { Id = Guid.NewGuid(), IsFolder = isfolder, ParentId = parentid, PermalinkId = Permalink.Id }; Extensions = Content.GetExtensions(true); GetMetaData(); }