/// <summary> /// 修改国家页面留学规划 /// </summary> /// <returns></returns> public int Updatecounguihua(JiaJiModels.studentprogramtype model) { try { return(new JiaJiDAL.studentdal().Updatecounguihua(model)); } catch (Exception ex) { return(0); } }
/// <summary> /// 修改国家页面留学规划 /// </summary> /// <returns></returns> public int Updatecounguihua(JiaJiModels.studentprogramtype model) { try { string sql = "Update study_abroad.studentprogramtype set TypeName = '" + model.TypeName + "' where TypeID =" + model.TypeID + " "; int he = MySqlDB.nonquery(sql, CommandType.Text, null); return(he); } catch (Exception ex) { return(0); } }
/// <summary> /// 添加国家页面留学规划 /// </summary> /// <param name="model"></param> /// <returns></returns> public int addcounguihua(JiaJiModels.studentprogramtype model) { try { string sql = "insert into studentprogramtype(TypeName) VALUES('" + model.TypeName + "')"; int he = MySqlDB.nonquery(sql, CommandType.Text, null); return(he); } catch (Exception ex) { return(0); } }