public ActionResult GetNewInfoModel() { int id = int.Parse(Request["Id"]); NewInfo newInfo = NewInfoService.GetModel(id); return(Json(newInfo, JsonRequestBehavior.AllowGet)); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/html"; BLL.NewInfoService newInfoService = new NewInfoService(); newInfoService.GetAllNews(); }