SalimAzureBlobAPI/SalimAzureAPI/AzureBlob/AzureBlobController.cs
/// <summary>
/// Uploads one or more blob files.
/// </summary>
/// <returns></returns>
Uploads one or more blob files.
Uploads one or more blob files .
[HttpPost("[controller]/upload")]
        public async Task<IActionResult> PostBlobUpload([FromBody]BlobUpload obj)
        {
            try
            {
                var result = await _blobService.UploadBlob(obj, _azureBlobSettings);
                if (result == true)
                {
                    return Ok(result);
                }
                return BadRequest();
            }
            catch (Exception ex)
            {
                return InternalServerError(ex);
            }
        }
[ HttpPost ( " " ) ] public async Task < IActionResult > PostBlobUpload ( [ FromBody ] BlobUpload obj ) { try { var result = await _blobService . UploadBlob ( obj , _azureBlobSettings ) ; if ( result == true ) { return Ok ( result ) ; } return BadRequest ( ) ; } catch ( Exception ex ) { return InternalServerError ( ex ) ; } }
Uploads one or more blob files.
Uploads one or more blob files .
// Call service to perform upload, then check result to return as content // Otherwise
None
BlobUpload
[FromBody]