Exemplo n.º 1
0
        public void DeleteSource(SourceViewModel sourceViewModel)
        {
            try
            {
                tbl_Source tblSource = new tbl_Source();
                tblSource.SourceID    = sourceViewModel.sourceID;
                tblSource.daId        = sourceViewModel.DAID;
                tblSource.EntityState = DA.DomainModel.EntityState.Deleted;

                SourceManager sourceManager = new SourceManager();
                sourceManager.DeleteSource(tblSource);
            }
            catch (Exception)
            {
                throw;
            }
        }