DRAB/Drab.Logic/Dtos/TowarDto.cs
2025-07-11 10:50:46 +02:00

23 lines
495 B
C#

namespace Drab.Logic.Dtos;
public class TowarDto
{
public long TowId { get; set; }
public string Nazwa { get; set; }
public string Kod { get; set; }
public string Jm { get; set; }
}
internal static class TowarExtension
{
internal static TowarDto ToTowarDto(this Towar towar)
{
return new TowarDto
{
TowId = (long)towar.TowId,
Nazwa = towar.Nazwa,
Kod = towar.Kod,
Jm = towar.Jm.Nazwa
};
}
}