public string GetList() { TempFileBLL bll = new TempFileBLL(); DataSet ds = bll.GetAllList(); return(ds.Tables[0].ToJson()); }
public string DeleteTemp(int id, string path) { TempFileBLL bll = new TempFileBLL(); bool b = bll.Delete(id); if (File.Exists(path)) { File.Delete(path); } if (b) { return("删除模板成功!".ToJson()); } else { return("删除模板失败!".ToJson()); } }