46 lines
1.9 KiB
C#
46 lines
1.9 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
|
using Kreta.Naplo.Dto.V3.Documentation;
|
|
using Kreta.Naplo.Dto.V3.Interfaces;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
|
{
|
|
public class OsztalyokCsoportokResponseDto : IDtoListDocumentation
|
|
{
|
|
[Required, Description(DescriptionLookUp.OsztalyCsoportId)]
|
|
public int OsztalyCsoportId { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.OsztalyCsoportNev)]
|
|
public string OsztalyCsoportNev { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.IsTanitom)]
|
|
public bool IsTanitom { get; set; }
|
|
|
|
[Description(DescriptionLookUp.OsztalyfonokCsoportvezetoUid)]
|
|
public Guid? OsztalyfonokCsoportvezetoUid { get; set; }
|
|
|
|
[Description(DescriptionLookUp.OsztalyfonokCsoportvezetoNev)]
|
|
public string OsztalyfonokCsoportvezetoNev { get; set; }
|
|
|
|
[Description(DescriptionLookUp.OsztalyfonokHelyettesUid)]
|
|
public Guid? OsztalyfonokHelyettesUid { get; set; }
|
|
|
|
[Description(DescriptionLookUp.OsztalyfonokHelyettesNev)]
|
|
public string OsztalyfonokHelyettesNev { get; set; }
|
|
|
|
public DocumentationExampleDto ListExample => new DocumentationExampleDto("GetOsztalyokCsoportok", null);
|
|
|
|
public static implicit operator OsztalyokCsoportokResponseDto(OsztalyokCsoportokResponse model) => new OsztalyokCsoportokResponseDto
|
|
{
|
|
OsztalyCsoportId = model.OsztalyCsoportId,
|
|
OsztalyCsoportNev = model.OsztalyCsoportNev,
|
|
IsTanitom = model.IsTanitom,
|
|
OsztalyfonokCsoportvezetoUid = model.OsztalyfonokCsoportvezetoUid,
|
|
OsztalyfonokCsoportvezetoNev = model.OsztalyfonokCsoportvezetoNev,
|
|
OsztalyfonokHelyettesUid = model.OsztalyfonokHelyettesUid,
|
|
OsztalyfonokHelyettesNev = model.OsztalyfonokHelyettesNev
|
|
};
|
|
}
|
|
}
|