41 lines
1.6 KiB
C#
41 lines
1.6 KiB
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.Tanar;
|
|
using Kreta.Naplo.Dto.V3.Documentation;
|
|
using Kreta.Naplo.Dto.V3.Interfaces;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.Tanar
|
|
{
|
|
public class TantargyFelosztasResponseDto : IDtoDocumentation
|
|
{
|
|
[Required, Description(DescriptionLookUp.OsztalyCsoportId)]
|
|
public int OsztalyCsoportId { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.OsztalyCsoportNev)]
|
|
public string OsztalyCsoportNev { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.TantargyId)]
|
|
public int TantargyId { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.TantargyNev)]
|
|
public string TantargyNev { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyId)]
|
|
public int FeladatellatasiHelyId { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyNev)]
|
|
public string FeladatellatasiHely { get; set; }
|
|
|
|
public static implicit operator TantargyFelosztasResponseDto(TantargyFelosztasResponse model) => new TantargyFelosztasResponseDto
|
|
{
|
|
OsztalyCsoportId = model.OsztalyCsoportId,
|
|
OsztalyCsoportNev = model.OsztalyCsoportNev,
|
|
TantargyId = model.TantargyId,
|
|
TantargyNev = model.TantargyNev,
|
|
FeladatellatasiHelyId = model.FeladatellatasiHelyId,
|
|
FeladatellatasiHely = model.FeladatellatasiHely
|
|
};
|
|
|
|
public DocumentationExampleDto Example => new DocumentationExampleDto("GetTantargyFelosztasok", null);
|
|
}
|
|
}
|