public ActionResult Add(StudyItem entity) { entity.RegTime = DateTime.Now; entity.ModfiedTime = DateTime.Now; entity.DelFlag = true; StudyItemService.Add(entity); return(Json(new { status = 1, errorMsg = "操作成功!!" })); }
public ActionResult Add(int id = 0, string content = "") { StudyItem model = new StudyItem(); model.RegTime = DateTime.Now; model.ModfiedTime = DateTime.Now; model.StudyOnlineID = id; model.DelFlag = true; model.Context = content; model.UserInfoID = 1; StudyItemService.Add(model); return(Json(new { status = 1, msg = "成功" })); }