예제 #1
0
        public void CheckPossibilityToMoveToNextStage(Deal deal, User user)
        {
            // права
            CheckPermissionToPerformOperation(deal, user, Permission.Deal_Stage_Change);

            // сущность
            deal.CheckPossibilityToMoveToNextStage();

            // запросы к БД
            switch (deal.NextStage.Value)
            {
            // 7.1
            case DealStage.SuccessfullyClosed:
                CheckPossibilityToCloseDeal(deal, deal.NextStage.Value, user);
                break;
            }
        }