#127 Хранение технологических сообщений #4

Merged
on.nemtina merged 14 commits from TechMessages into master 2024-12-04 16:51:51 +05:00
Showing only changes of commit 81474ea297 - Show all commits

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);
}
}
}