Добавить категории
This commit is contained in:
parent
7807e4aa1e
commit
81474ea297
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user