public List <secondarySource> GetValidsecondrySource(string type, int factoryid)
        {
            List <secondarySource> x = new PhasesConnectionService(_con).GetValidsecondrySource(type, factoryid);

            return(x);
        }
        public validNodes GetValidNodes(int id) // from ajax id = sourceid
        {
            validNodes x = new PhasesConnectionService(_con).GetValidNodes(id);

            return(x);
        }
        public List <PrimarySource> GetValidPrimarySource(string type, int factoryid)  //type of distination
        {
            List <PrimarySource> x = new PhasesConnectionService(_con).GetValidPrimarySource(type, factoryid);

            return(x);
        }