Exemple #1
0
        public static bool GuardarDetalleInfraestructura(Model.Infraestructura_Detalle infraestructuraDetalle)
        {
            string response = ServicesManager.Instance.ServiceClient.GuardarInfraestructuraDetalle(infraestructuraDetalle);

            if (response != "")
            {
                infraestructuraDetalle.Id = response;
                DictionaryInfraestructura.First(I => I.Key.Id == infraestructuraDetalle.Id_Infra).Value.Add(infraestructuraDetalle);
                return(true);
            }
            return(false);
        }
Exemple #2
0
        public static List <Model.Infraestructura_Detalle> GetInfraestructuraDetalle(string id_Infraestructura)
        {
            List <Model.Infraestructura_Detalle> result = DictionaryInfraestructura.First(U => U.Key.Id == id_Infraestructura).Value;

            return(result);
        }
Exemple #3
0
        public static IEnumerable <Model.Infraestructura_Detalle> GetInfraestructuraDetalle(Model.Infraestructura infraestructura)
        {
            List <Model.Infraestructura_Detalle> result = DictionaryInfraestructura.First(U => U.Key.Id == infraestructura.Id).Value;

            return(result);
        }