This commit is contained in:
@@ -23,7 +23,7 @@ public class DeviceController : ControllerBase
|
||||
[HttpGet("GetDeviceById")]
|
||||
[ProducesResponseType<DeviceItem>(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||
public IActionResult GetById(int id) // Получить устройство по id
|
||||
public IActionResult GetById(Guid id) // Получить устройство по id
|
||||
{
|
||||
using (var db = new SQLiteService())
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public class DeviceController : ControllerBase
|
||||
#region DELETE
|
||||
|
||||
[HttpDelete("DelDevice")]
|
||||
public IActionResult DelDevice(int id) //Удалить устройство по id
|
||||
public IActionResult DelDevice(Guid id) //Удалить устройство по id
|
||||
{
|
||||
using (var db = new SQLiteService())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user