public async Task <IHttpActionResult> DeleteAsync(string portalUri, string pageUri, CancellationToken cancellationToken) { var portal = await _portalManager.FindByUriAsync(portalUri, cancellationToken); await ApiSecurity.AuthorizeAsync(portal, AccessPermission.CanEdit, cancellationToken); var page = await _portalManager.GetPageByUriAsync(portal, pageUri, cancellationToken); if (page != null) { await _portalManager.RemovePageAsync(portal, page, cancellationToken); } return(StatusCode(HttpStatusCode.NoContent)); }