public async Task <IActionResult> Delete(int pageDirectoryId) { var command = new DeletePageDirectoryCommand(); command.PageDirectoryId = pageDirectoryId; return(await _apiResponseHelper.RunCommandAsync(this, command)); }
public Task <JsonResult> Delete(int pageDirectoryId) { var command = new DeletePageDirectoryCommand(); command.PageDirectoryId = pageDirectoryId; return(_apiResponseHelper.RunCommandAsync(command)); }
public Task DeleteAsync(int PageDirectoryId) { var command = new DeletePageDirectoryCommand() { PageDirectoryId = PageDirectoryId }; return(ExtendableContentRepository.ExecuteCommandAsync(command)); }