Добавить категории

This commit is contained in:
Roman Efremov 2024-11-26 14:07:36 +05:00
parent 7807e4aa1e
commit 81474ea297

View File

@ -48,5 +48,20 @@ namespace Persistence.API.Controllers
return CreatedAtAction(nameof(InsertRange), result);
}
[HttpGet("categories")]
public ActionResult<Dictionary<int, string>> GetImportantCategories()
{
var result = new Dictionary<int, string>()
{
{ 0, "System" },
{ 1, "Авария" },
{ 2, "Предупреждение" },
{ 3, "Инфо" },
{ 4, "Прочее" }
};
return Ok(result);
}
}
}