Ejemplo n.º 1
0
        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();
 }
Ejemplo n.º 3
0
        public async Task <ActionResult> CreateBlobFolderAsync([FromBody] BlobFolder folder)
        {
            await _blobProvider.CreateFolderAsync(folder);

            return(NoContent());
        }