mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
Слегка изменил сущности Добавил страницу в Web Сделал компонент с карточками для принетров
13 lines
379 B
C#
13 lines
379 B
C#
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.ToItemList()).ToList()
|
|
};
|
|
}
|
|
}
|