Пример #1
0
        public bool DeleteLifeCycle(LifeCyclesViewModel lifecyclesviewmodel)
        {
            try
            {
                tbl_LifeCycle tbllifecycle = new tbl_LifeCycle();

                tbllifecycle.LifeCycleID = lifecyclesviewmodel.LifeCycleID;
                tbllifecycle.EntityState = DA.DomainModel.EntityState.Deleted;

                LifeCycleManager lifecycleManager = new LifeCycleManager();
                lifecycleManager.DeleteLifeCycle(tbllifecycle);

                return(true);
            }
            catch (Exception)
            {
                throw;
            }
        }