public JsonResult addAreasesAdd(JiaJiModels.areases model) { try { var i = new JiaJiBLL.AreaesBll().AreasesAdd(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 editAreasesAdd(JiaJiModels.areases model) { try { int id = model.AreaID; var i = new JiaJiBLL.AreaesBll().UpdAreases(model); if (i > 0) { return(Json(new { Success = true, Message = "修改成功" })); } else { return(Json(new { Success = false, Message = "修改失败" })); } } catch { return(Json(new { Success = false, Message = "修改失败" })); } }