Exemple #1
0
        public ObjectResult AutoRename([FromBody] string path)
        {
            var item = repository.Find(path);

            if (item == null)
            {
                return(StatusCode(404, null));
            }

            var renamedItems = mediaLibraryService.AutoRename(item);

            if (renamedItems == null)
            {
                return(StatusCode(400, null));
            }

            return(StatusCode(200, renamedItems));
        }