public async Task <IHttpActionResult> Delete([FromUri] Guid id, [FromUri(Name = "delete_child_nodes")] bool deleteChildNodes = false)
 {
     if (_planService.IsPlanActiveOrExecuting(id))
     {
         return(new LockedHttpActionResult());
     }
     if (deleteChildNodes)
     {
         await _activityService.DeleteChildNodes(id);
     }
     else
     {
         await _activityService.Delete(id);
     }
     return(Ok());
 }
Esempio n. 2
0
 public Task DeleteChildNodes(Guid id)
 {
     return(_activity.DeleteChildNodes(id));
 }