Example #1
0
        public ActionResult Add(Article model)
        {
            string error;
            int    result = service.Action(model, out error);

            if (result > 0)
            {
                return(Json(new { state = 1 }));
            }
            else
            {
                return(Json(new { state = -1, error = error }));
            }
        }