mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
Сделал модель данных для списка принеров
This commit is contained in:
1 parent
4dfb62e9e8
commit
9cc166e37d
11 files changed
+87
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
using CartriX.Api.Controllers.Cartridge;
|
||||
namespace CartriX.Api.Controllers.Location
|
||||
{
|
||||
public static class LocationMap
|
||||
{
|
||||
public static Shared.Models.Location.LocationItem ToItem(this Entities.Location location) => new()
|
||||
{
|
||||
Name = location.Name,
|
||||
Printers = location.Printers.Select(p => p.ToItem()).ToList()
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user