public IHttpActionResult DeleteControllerAction(int id, int[] controllerActions) { try { _pagesService.DeleteControllerActionsAsync(id, controllerActions.ToList()); return(Ok()); } catch (Exception ex) { return(InternalServerError(ex)); } }