mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Был сделан запрос POST для создание записи о принтере
This commit is contained in:
1 parent
7a0e7e0801
commit
02160f451f
43 files changed
+1044
-634
No files matched your search
@@ -1,20 +1,21 @@
|
||||
using CartriX.Shared.DTOs.Location;
|
||||
using CartriX.Shared.Models;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using CartriX.Shared.Models;
|
||||
using CartriX.Shared.DTOs.Location;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace CartriX.Shared.Patterns
|
||||
namespace CartriX.Shared.Mappers
|
||||
{
|
||||
public static class LocationMap
|
||||
{
|
||||
public static PrintersAndLocations NoId(this Location locationModel)
|
||||
public static LocationOnlyName OnlyName(this Location location)
|
||||
{
|
||||
return new PrintersAndLocations
|
||||
return new()
|
||||
{
|
||||
Name = locationModel.Name
|
||||
Name = location.name
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user