Beispiel #1
0
        public NewsModel GetNewsId(int id)
        {
            NewsModel result = new NewsModel();

            result = _newsDL.GetNewsId(id);
            return(result);
        }
Beispiel #2
0
        public JsonResult GetNewsId(int id)
        {
            var obj = Request["key"] != Keyapi
                 ? new NewsItem()
                 : _dl.GetNewsId(id, "");

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