private Tuple <List <string>, List <string> > GetClaimDetail(AllegraDataModel xmlMessage)
        {
            Tuple <List <string>, List <string> > tuple = null;

            List <string> Columns = new List <string>();
            List <string> Values  = new List <string>();

            Type type = typeof(AllegraDataModel);

            PropertyInfo[] properties = type.GetProperties();

            foreach (PropertyInfo property in properties)
            {
                Type           childClassType  = Type.GetType(property.PropertyType.FullName);
                PropertyInfo[] childProperties = childClassType.GetProperties();

                var childClaimDetail = GetRecursiveChildClaimDetail(xmlMessage, childProperties, property.Name);
                Columns.AddRange(childClaimDetail.Item1);
                Values.AddRange(childClaimDetail.Item2);
            }

            tuple = new Tuple <List <string>, List <string> >(Columns, Values);

            return(tuple);
        }
Exemple #2
0
        // Added by Krishna Talluri on 19/05/2018

        #region Insert Allegra Detail

        public XmlElement SaveAllegraData(AllegraDataModel xmlMessage)
        {
            IClaimRepository repo     = new ClaimRepository();
            XmlElement       response = repo.SaveAllegraDetail(xmlMessage);

            return(response);
        }
        // Added by Krishna Talluri on 19/05/2018

        #region Insert Allegra Detail
        public EDIResponse SaveAllegraData(AllegraDataModel xmlMessage)
        {
            return(_response);
        }