Пример #1
0
        public ActionResult NewsEdit(int id, Models.News.NewsModel model)
        {
            var service = new NewsService();

            service.Update(model);
            return(RedirectToAction("GetAllNews"));
        }
Пример #2
0
        public ActionResult NewsCreate(Models.News.NewsModel model)
        {
            var service = new NewsService();
            var result  = service.Create(model);

            return(RedirectToAction("GetAllNews"));
        }