Пример #1
0
        public virtual ActionResult AssociateTemplate(string operationNumber)
        {
            var message   = string.Empty;
            var operation = _operationRepository.GetOne(x => x.OperationNumber == operationNumber);

            if (operation != null)
            {
                var cmb   = new CMBusiness(operation);
                var items = cmb.Context.ActivityPlanItems;
                cmb.DeleteCurrentActivityPlan();
                cmb.CreateActivityPlan(76, items, true);
                message = "Activity Plan 'Country Strategy' created for operation " + operationNumber;
            }
            else
            {
                message = "Operation " + operationNumber + " doesn´t exist.";
            }

            return(View("FakeLifeCycle", model: message));
        }