Пример #1
0
        public async Task <IHttpActionResult> NumberOfFoundFoldersAndFiles(int spaceId, string text = "", int?folderId = null)
        {
            text = text == null ? string.Empty : text;
            int result = await _spaceService?.NumberOfFoundFoldersAndFilesAsync(spaceId, folderId, text);

            if (result == 0)
            {
                return(NotFound());
            }
            return(Ok(result));
        }