Beispiel #1
0
        public void BizAction(Guid inputData)
        {
            var item = _updatedbAccess.GetProject(inputData);

            if (item == null)
            {
                AddError("Could not find the Project. Someone entering illegal ids?");
            }

            if (_updatedbAccess.haveAnyWbs(item.Id))
            {
                AddError("Project hvae some wbs items!!!");
            }

            _dbAccess.Delete(item);

            Message = $"Project is Delete: {item.ToString()}.";
        }
Beispiel #2
0
        public void BizAction(Guid inputData)
        {
            var item = _updateDbAccess.GetProject(inputData);

            if (item == null)
            {
                AddError("Could not find the project. Someone entering illegal ids?");
            }

            if (_updateDbAccess.HaveAnyDependency(inputData))
            {
                AddError("Could not to delete project.");
            }

            if (!HasErrors)
            {
                _dbAccess.Delete(item);
                Message = $"project is Delete: {item.ToString()}.";
            }
        }