Esempio n. 1
0
        public ActionResult GetNewInfoModel()
        {
            int     id      = int.Parse(Request["Id"]);
            NewInfo newInfo = NewInfoService.GetModel(id);

            return(Json(newInfo, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
 public void ProcessRequest(HttpContext context)
 {
     context.Response.ContentType = "text/html";
     BLL.NewInfoService newInfoService = new NewInfoService();
     newInfoService.GetAllNews();
 }