示例#1
0
        public IActionResult Create([FromQuery(Name = "path")] string path)
        {
            bool result = _client.AddDirectory(path);

            if (result)
            {
                return(Ok("Directory created at path " + path));
            }
            else
            {
                return(BadRequest("Cannot create a directory of path " + path));
            }
        }