Ejemplo n.º 1
0
        public ActionResult ModelPath(ModelFile model)
        {
            var path = ModelUtility.GetModelPath(model);

            if (String.IsNullOrEmpty(path))
            {
                path = "模型不存在或正在转换中...";
            }
            return(Json(path, "text/plain", JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        private bool HasModel(ModelFile model)
        {
            var res  = false;
            var path = ModelUtility.GetModelPath(model);

            if (!String.IsNullOrEmpty(path))
            {
                res = true;
            }
            return(res);
        }