Fixes up content controller move/copy actions
This commit is contained in:
38
src/Umbraco.Web/Models/ContentEditing/MoveOrCopy.cs
Normal file
38
src/Umbraco.Web/Models/ContentEditing/MoveOrCopy.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
|
||||
namespace Umbraco.Web.Models.ContentEditing
|
||||
{
|
||||
/// <summary>
|
||||
/// A model representing a model for moving or copying
|
||||
/// </summary>
|
||||
[DataContract(Name = "content", Namespace = "")]
|
||||
public class MoveOrCopy
|
||||
{
|
||||
/// <summary>
|
||||
/// The Id of the node to move or copy to
|
||||
/// </summary>
|
||||
[DataMember(Name = "parentId", IsRequired = true)]
|
||||
[Required]
|
||||
public int ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The id of the node to move or copy
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", IsRequired = true)]
|
||||
[Required]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Boolean indicating whether copying the object should create a relation to it's original
|
||||
/// </summary>
|
||||
[DataMember(Name = "relateToOriginal", IsRequired = true)]
|
||||
[Required]
|
||||
public bool RelateToOriginal { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user