Пример #1
0
        public async Task Finish(Guid guid)
        {
            if (guid == Guid.Empty)
            {
                throw new ErrorHandlerMiddleware.HttpStatusCodeException(HttpStatusCode.BadRequest, "Guid required");
            }
            var result = await _fileUploadService.Finish(guid);

            if (!result)
            {
                throw new ErrorHandlerMiddleware.HttpStatusCodeException(HttpStatusCode.NotFound);
            }
        }