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())
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ public class ObjectController : ControllerBase
|
||||
[HttpGet("GetObjectById")]
|
||||
[ProducesResponseType<ObjectItem>(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||
public IActionResult GetById(int id)
|
||||
public IActionResult GetById(Guid id)
|
||||
{
|
||||
using (var db = new SQLiteService())
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public class ObjectController : ControllerBase
|
||||
|
||||
//========================= DELETE ====================================//
|
||||
[HttpDelete("DelObject")]
|
||||
public IActionResult DelObject(int id)
|
||||
public IActionResult DelObject(Guid id)
|
||||
{
|
||||
using (var db = new SQLiteService())
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ public class TypeController : ControllerBase
|
||||
[HttpGet("GetTypeById")]
|
||||
[ProducesResponseType<DeviceItem>(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||
public IActionResult GetById(int id) // Получить устройство по id
|
||||
public IActionResult GetById(Guid id) // Получить устройство по id
|
||||
{
|
||||
using (var db = new SQLiteService())
|
||||
{
|
||||
@@ -63,7 +63,7 @@ public class TypeController : ControllerBase
|
||||
//========================= DELETE ====================================//
|
||||
#region DELETE
|
||||
[HttpDelete("DelType")]
|
||||
public IActionResult DelType(int id) //Удалить тип устройства по id
|
||||
public IActionResult DelType(Guid id) //Удалить тип устройства по id
|
||||
{
|
||||
using (var db = new SQLiteService())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user