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); }
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); }
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); }