Exemplo n.º 1
0
        public ActionResult EditDetail(string title = null, string content = null)
        {
            if (content != null && title != null)
            {
                var obj = new JObject();
                obj["content"] = content;
                obj["title"]   = title;
                api.EditDetail(obj);
                return(View(obj));
            }
            var model = api.GetDetail();

            return(View(model));
        }