Exemplo n.º 1
0
        public JsonResult AddLog(Log log)
        {
            var result = _homeRepository.AddLog(log);

            if (result)
            {
                return(Json(new
                {
                    status = StatusCodes.Success,
                    message = String.Format(Constants.MessageSuccess, ObjectSystem.Log, ActionUser.Add)
                }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new
                {
                    status = StatusCodes.Error,
                    message = Constants.MessageError
                }, JsonRequestBehavior.AllowGet));
            }
        }