Новый адрес API и обновил библиотеки.
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 12s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 12s
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Microsoft.AspNetCore.Http.HttpResults;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Strela.Models;
|
||||
using Strela.Services;
|
||||
@@ -46,7 +45,7 @@ public class DeviceController : ControllerBase
|
||||
return Ok(d);
|
||||
//else return NoContent();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
//========================= POST ====================================//
|
||||
@@ -62,12 +61,12 @@ public class DeviceController : ControllerBase
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
//========================= DELETE ====================================//
|
||||
#region DELETE
|
||||
|
||||
|
||||
[HttpDelete("DelDevice")]
|
||||
public IActionResult DelDevice(Guid id) //Удалить устройство по id
|
||||
{
|
||||
@@ -78,6 +77,6 @@ public class DeviceController : ControllerBase
|
||||
db.SaveChanges();
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class ObjectController : ControllerBase
|
||||
using (var db = new SQLiteService())
|
||||
{
|
||||
var oi = db.ObjectItems.ToList();
|
||||
return Ok(oi);
|
||||
return Ok(oi);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using Microsoft.AspNetCore.Http.HttpResults;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Strela.Models;
|
||||
using Strela.Services;
|
||||
@@ -42,7 +41,7 @@ public class TypeController : ControllerBase
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
//========================= POST ====================================//
|
||||
@@ -72,6 +71,6 @@ public class TypeController : ControllerBase
|
||||
db.SaveChanges();
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user