コード例 #1
0
        public async Task <ActionResult <DatastoreResult> > Get()
        {
            DatastoreResult msg = new DatastoreResult();

            msg.success = true;

            List <string> dsNames = dsManager.GetDataStoreList();

            if (dsNames.Count == 0)
            {
                msg.responseMessage = "There is no datastore so far.\n";
            }
            else
            {
                msg.responseMessage = "There are " + dsNames.Count + " datastore(s).\n";
            }

            msg.datastoreNames = dsNames;

            return(Ok(msg));
        }