public List <ComponentDetails> GetComponentHistoryByCode(string compCode)
        {
            List <ComponentDetails> response = _repository.GetComponentHistoryByCode(compCode);

            if (!(response?.Count > 0))
            {
                return(null);
            }

            return(response);
        }