public ActionResult Release(string models) { StaffStarInfo jobmodel = new StaffStarInfo(); JsonResult result = new JsonResult(); if (models != null) { jobmodel = JsonConvert.DeserializeObject<StaffStarInfo>(models); result.Data = new StaffStarBLL().AddStaffStars(jobmodel); } else { result.Data = false; } return result; }
public ActionResult Update(string models) { StaffStarInfo info = new StaffStarInfo(); List<StaffStarInfo> list = new List<StaffStarInfo>(); if (models != null) { info = JsonConvert.DeserializeObject<StaffStarInfo>(models); list.Add(info); var t = new StaffStarBLL().UpdateStaffStar(list); } return Json(list); }