Esempio n. 1
0
        public async Task <IActionResult> CreateFolder([FromBody] FolderViewModel folderData)
        {
            try
            {
                int folderId = await _foldersService.CreateFolder(folderData);

                return(Ok(folderId));
            }

            catch (Exception ex)
            {
                return(BadRequest(ex));
            }
        }
Esempio n. 2
0
 public async Task <IActionResult> CreateFolder([FromBody] CreateFolderVm model)
 {
     return(this.Ok(await _foldersService.CreateFolder(this.CurrentUserId.Value, model)));
 }