public ActionResult Approval(int Id) { var model = _services.Approval(Id); _serviceLog.Add(new ActionLog { actionLogStatus = 1, actionLogTime = DateTime.Now, actionLogType = 1, actionNote = "Duyệt nội dung:" + Id + ":" + model.contentName, userIp = "", userName = User.Identity.Name }); _serviceLog.Save(); return(Json(true, JsonRequestBehavior.AllowGet)); }
public ActionResult Approval(int Id) { if (Id > 0) { _services.Approval(Id); return(Json(true, JsonRequestBehavior.AllowGet)); } else { return(Json(false, JsonRequestBehavior.AllowGet)); } }
public ActionResult Approval(int id) { _services.Approval(id); return(Json(true, JsonRequestBehavior.AllowGet)); }