Exemple #1
0
        public Task Deactivate(Guid curPlanId)
        {
            if (_securityServices.AuthorizeActivity(PermissionType.EditObject, curPlanId, nameof(PlanNodeDO)))
            {
                return(_target.Deactivate(curPlanId));
            }

            throw new HttpException(403, "You are not authorized to perform this activity!");
        }
Exemple #2
0
        public async Task <IHttpActionResult> Deactivate(Guid planId)
        {
            await _plan.Deactivate(planId);

            return(Ok());
        }