DepartmentProject/DepartmentPortal/Common/ToolsModule/ViewModels/ElementViewModel.cs

20 lines
472 B
C#

using ToolsModule.Attributes;
using System;
namespace ToolsModule.ViewModels
{
/// <summary>
/// Возвращаемая запись
/// </summary>
public class ElementViewModel
{
[ViewModelControlListProperty("Идентификатор", IsHide = true)]
[MapConfiguration("Id")]
public Guid Id { get; set; }
[MapConfiguration("ToString")]
public string ElementViewString { get; set; }
public override string ToString() => ElementViewString;
}
}