mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Сделал раздел с устройствами где есть Datagrid с выводом как местоположений так и устройств в них
This commit is contained in:
1 parent
3d52cd5691
commit
17e4794160
25 files changed
+595
-308
No files matched your search
@@ -10,12 +10,13 @@ namespace CartriX.Shared.Mappers
|
||||
{
|
||||
public static class LocationMap
|
||||
{
|
||||
public static LocationDtoNameAndPrinters OnlyNameAndPrinters(this Location location)
|
||||
public static QueryToListLocationsAndPrintersDto ToQueryToListLocationsAndPrintersDto(this Location location)
|
||||
{
|
||||
return new()
|
||||
{
|
||||
id = location.id,
|
||||
name = location.name,
|
||||
printers = location.printers.Select(p => p.ToDtoWithNameAndId()).ToList()
|
||||
printers = location.printers.Select(p => p.ToQueryPrinterFromLocationDto()).ToList()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user