public async Task <IActionResult> NewCode(long?id)
        {
            Guid?parentId = null;

            if (id.HasValue)
            {
                var costCenter = await _itemGroupRepo.GetAsync(id.Value);

                if (costCenter == null)
                {
                    return(NotFound(Resources.Items.ItemResource.ItemGroupNotFound));
                }
                parentId = costCenter.Id;
            }
            var newCode = await _itemGroupRepo.GetNewCodeAsync(parentId);

            return(Ok(newCode));
        }