public static bool GuardarFotoApartamento(Model.Fotos_Apartamento fapartamento) { string response = ServicesManager.Instance.ServiceClient.GuardarFotosApartamento(fapartamento); if (response != "") { fapartamento.Id = response; ListFotoApartament.Add(fapartamento); return(true); } return(false); }
public void Aceptar(object sender, EventArgs e) { Model.Fotos_Apartamento newFotoApart = new Model.Fotos_Apartamento(); newFotoApart.Foto = @"http://localhost:2360/" + _dicInfoImage[HelpImage.InfoImage.IMAGENAME]; newFotoApart.Descripcion = txt_descripcion.Text; newFotoApart.Id_Infra_Detalle = _IdInfra; newFotoApart.Id_Apartamento = _id_apartamento; bool response = LocalDataStore.GuardarFotoApartamento(newFotoApart); if (response) { //_lbx_DataList.Items.Refresh(); MessageBox.Show("El registro fue exitoso", "Añadir nuevo elemento", MessageBoxButton.OK, MessageBoxImage.Information); } }