public async Task Abort(Guid guid) { if (guid == Guid.Empty) { throw new ErrorHandlerMiddleware.HttpStatusCodeException(HttpStatusCode.BadRequest, "Guid required"); } var result = await _fileUploadService.Abort(guid); if (!result) { throw new ErrorHandlerMiddleware.HttpStatusCodeException(HttpStatusCode.NotFound); } }