Exemple #1
0
        public ItemEntity GetItem(string itemId, ref string responseMessage)
        {
            try
            {
                if (!ValidateItemIdParameter(itemId))
                {
                    return(null);
                }

                var item = _externalService.GetItem(itemId, ref responseMessage);
                if (item != null)
                {
                    string responseMessageNotNecessary = string.Empty;
                    item.ItemLargeDescription = _externalService.GetItemLargeDescription(itemId, ref responseMessageNotNecessary);
                }

                return(item);
            }
            catch (System.Exception ex)
            {
                _logger.Error(ex);
                responseMessage = ex.Message;
                return(null);
            }
        }