upd
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s

This commit is contained in:
2026-06-09 02:20:50 +03:00
parent cb931df1b8
commit 76d090b744
35 changed files with 44341 additions and 17 deletions
-14
View File
@@ -1,6 +1,5 @@
using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Strela.Models;
using Strela.Services;
@@ -67,17 +66,4 @@ public class DeviceController : ControllerBase
return Created();
}
}
//========================= DELETE ====================================//
[HttpDelete("DelType")]
public IActionResult DelType(int id)
{
using (var db = new SQLiteService())
{
var deldev = db.DeviceTypes.Where(u => u.Id == id).FirstOrDefault();
db.DeviceTypes.Remove(deldev);
db.SaveChanges();
return Ok();
}
}
}