public async Task <ActionResult> CreateBlobFolderAsync([FromBody] BlobFolder folder) { var validation = new BlobFolderValidator().Validate(folder); if (!validation.IsValid) { return(BadRequest(new { Message = string.Join(" ", validation.Errors.Select(x => x.ErrorMessage)), Errors = validation.Errors })); } await _blobProvider.CreateFolderAsync(folder); return(NoContent()); }
public async Task<IActionResult> CreateBlobFolderAsync([FromBody]BlobFolder folder) { await _blobProvider.CreateFolderAsync(folder); return Ok(); }
public async Task <ActionResult> CreateBlobFolderAsync([FromBody] BlobFolder folder) { await _blobProvider.CreateFolderAsync(folder); return(NoContent()); }