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