public ActionResult Add(InfoModel m) { try { bool check = DataUserController.CheckUser(Session, m); if (check) { return(Json(m)); } DBHelper.Update(AddInfo, m.UserInfo["uid"], m.Sid, m.Title, m.Info); m.Success = true; } catch (Exception ex) { m.Fail(ex); } return(Json(m)); }
public ActionResult AddReturns(ReturnsModel m) { try { bool check = DataUserController.CheckUser(Session, m); if (check) { return(Json(m)); } DBHelper.Update(InsertReturns, m.UserInfo["uid"], m.Iid, m.Content); m.Success = true; } catch (Exception ex) { m.Fail(ex); } return(Json(m)); }