public ActionResult News() { NewsRoomModel Model = new NewsRoomModel() { GetNews = NewsRoomService.GetNewsRooms(1) }; return View(Model); }
public JsonResult Edit(int Id) { var Data = NewsRoomService.Get(Id); NewsRoomModel Model = new NewsRoomModel() { Description = Data.Description, Title = Data.Title, NewsId = Data.NewRoomId }; return Json(Model, JsonRequestBehavior.AllowGet); }
public ActionResult SingleNews(int id) { var Data = NewsRoomService.Get(id); NewsRoomModel Model = new NewsRoomModel() { Description = Data.Description, Title = Data.Title, NewsId = Data.NewRoomId, Image = Data.Image, PostedOn = Data.CreatedOn }; return View(Model); }