//[HttpGet] //public ActionResult LoadDropDown(long id = -1) //{ // var data = newRepository.GetAllNews(); // var listParentId = data.Where(x => x.ParentID == 0 && x.TrangThai == true && x.NewCategoryID != id).ToList(); // return Json(new // { // status = true, // data = listParentId, // }, JsonRequestBehavior.AllowGet // ); //} public ActionResult LoadDetail(long id) { var model = newRepository.GetNewByIds(id); return(Json( new { status = true, data = model }, JsonRequestBehavior.AllowGet)); }