Esempio n. 1
0
        public ActionResult GetItemById(string key, int id)
        {
            var obj = key != Keyapi ? new NewsItem() : _da.GetItemById(id);

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }