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