public ActionResult NewsEdit(int id, Models.News.NewsModel model) { var service = new NewsService(); service.Update(model); return(RedirectToAction("GetAllNews")); }
public ActionResult NewsCreate(Models.News.NewsModel model) { var service = new NewsService(); var result = service.Create(model); return(RedirectToAction("GetAllNews")); }