mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Подлатал API и Web
This commit is contained in:
1 parent
ae561f8311
commit
34868984fb
26 files changed
+435
-104
No files matched your search
@@ -10,11 +10,12 @@ namespace CartriX.Shared.Mappers
|
||||
{
|
||||
public static class LocationMap
|
||||
{
|
||||
public static LocationOnlyName OnlyName(this Location location)
|
||||
public static LocationDtoNameAndPrinters OnlyNameAndPrinters(this Location location)
|
||||
{
|
||||
return new()
|
||||
{
|
||||
Name = location.name
|
||||
name = location.name,
|
||||
printers = location.printers.Select(p => p.ToDtoWithNameAndId()).ToList()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user