in the UI project. Added basic user model and a mapper for that too. updated tree service in UI to automatically create the 'view' for each node based on the section and id, the same way it updates the level for each node.
22 lines
602 B
C#
22 lines
602 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Runtime.Serialization;
|
|
using Umbraco.Core.Models.Membership;
|
|
|
|
namespace Umbraco.Web.Models.ContentEditing
|
|
{
|
|
/// <summary>
|
|
/// A basic structure the represents a user
|
|
/// </summary>
|
|
[DataContract(Name = "user", Namespace = "")]
|
|
public class UserBasic
|
|
{
|
|
[DataMember(Name = "id", IsRequired = true)]
|
|
[Required]
|
|
public int UserId { get; set; }
|
|
|
|
[DataMember(Name = "name", IsRequired = true)]
|
|
[Required]
|
|
public string Name { get; set; }
|
|
|
|
}
|
|
} |