forked from ddrilling/AsbCloudServer
Merge pull request 'Иерархический список в плановых и фактических операциях' (#44) from feature/tree-select-in-operations into dev
Reviewed-on: http://test.digitaldrilling.ru:8080/DDrilling/AsbCloudServer/pulls/44
This commit is contained in:
commit
1da28fb18a
@ -51,14 +51,15 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <summary>
|
||||
/// Возвращает список имен типов операций на скважине
|
||||
/// </summary>
|
||||
/// <param name="includeParents">флаг, нужно ли включать родителей в список</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("categories")]
|
||||
[Permission]
|
||||
[ProducesResponseType(typeof(IEnumerable<WellOperationCategoryDto>), (int)System.Net.HttpStatusCode.OK)]
|
||||
public IActionResult GetCategories()
|
||||
public IActionResult GetCategories(bool includeParents = true)
|
||||
{
|
||||
var result = operationRepository.GetCategories(false);
|
||||
var result = operationRepository.GetCategories(includeParents);
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user