public async Task <ActionResult> DeleteAsync([FromRoute] string id, CancellationToken cancellationToken) { var item = await _categoryManager.GetByIdAsyncThrowNotFoundIfNotExists(id, cancellationToken); await _categoryManager.ArchiveAsync(item, cancellationToken); return(Ok()); }