public IActionResult GetItems(int parentId) { try { var results = _dataService.GetList(parentId); return(new ObjectResult(results)); } catch (Exception e) { _logManager.LogError(e, "GetItems", "LocalScopeExampleController"); throw; } }
public IActionResult GetItems(int parentId) { var results = _dataService.GetList(parentId); return(new ObjectResult(results)); }