Exemplo n.º 1
0
        public void Cancella()
        {
            ArticoliDS ds = new ArticoliDS();

            using (ArticoliBusiness bArticolo = new ArticoliBusiness())
            {
                bArticolo.GetArticolo(ds, IdArticolo);
                ArticoliDS.ARTICOLIRow articoloDs = ds.ARTICOLI.Where(x => x.IDARTICOLO == IdArticolo).FirstOrDefault();
                if (articoloDs != null)
                {
                    this.Cancellato       = true;
                    articoloDs.CANCELLATO = true;
                    bArticolo.UpdateTable(ds.ARTICOLI.TableName, ds);
                }
            }
        }