Beispiel #1
0
        public G_NewsDTO Create(G_NewsDTO dto)
        {
            var account = base.F_Create <G_NewsDTO, G_News>(dto
                                                            , _IG_NewsRepository
                                                            , dtoAction => { });

            return(account);
        }
Beispiel #2
0
        public ActionResult Create(G_NewsDTO news)
        {
            if (ModelState.IsValid)
            {
                this._IG_NewsService.Create(news);
            }

            return(RedirectToAction("index"));
        }
Beispiel #3
0
 public ActionResult Edit(G_NewsDTO news)
 {
     if (ModelState.IsValid)
     {
         this._IG_NewsService.Update(new List <G_NewsDTO> {
             news
         });
     }
     return(RedirectToAction("index"));
 }