public ActionResult addCountryGuiHua(JiaJiModels.studentprogramtype model) { try { var i = new JiaJiBLL.stubll().addcounguihua(model); if (i > 0) { return(Json(new { Success = true, Message = "添加成功" })); } else { return(Json(new { Success = false, Message = "添加失败" })); } } catch { return(Json(new { Success = false, Message = "添加失败" })); } }
public JsonResult editCountryGuiHua(JiaJiModels.studentprogramtype model) { try { int id = model.TypeID; var i = new JiaJiBLL.stubll().Updatecounguihua(model); if (i > 0) { return(Json(new { Success = true, Message = "修改成功" })); } else { return(Json(new { Success = false, Message = "修改失败" })); } } catch { return(Json(new { Success = false, Message = "修改失败" })); } }