mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
14 lines
383 B
C#
14 lines
383 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()
|
|
{
|
|
Id = location.Id,
|
|
Name = location.Name,
|
|
CountPrinters = (byte)location.Printers.Count
|
|
};
|
|
}
|
|
}
|