init
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportId)]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNev)]
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportResponseDto(OsztalyCsoportResponse model) => new OsztalyCsoportResponseDto
|
||||
{
|
||||
OsztalyCsoportId = model.OsztalyCsoportId,
|
||||
OsztalyCsoportNev = model.OsztalyCsoportNev
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user