Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public ActionResult Approval(int Id)
 {
     if (Id > 0)
     {
         _services.Approval(Id);
         return(Json(true, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(Json(false, JsonRequestBehavior.AllowGet));
     }
 }
Ejemplo n.º 3
0
 public ActionResult Approval(int id)
 {
     _services.Approval(id);
     return(Json(true, JsonRequestBehavior.AllowGet));
 }