Ejemplo n.º 1
0
        public F_NewsDTO Create(F_NewsDTO dto)
        {
            var account = base.F_Create <F_NewsDTO, F_News>(dto
                                                            , _IF_NewsRepository
                                                            , dtoAction => { });

            return(account);
        }
Ejemplo n.º 2
0
        public ActionResult Create(F_NewsDTO news)
        {
            if (ModelState.IsValid)
            {
                this._IF_NewsService.Create(news);
            }

            return(RedirectToAction("index"));
        }
Ejemplo n.º 3
0
 public ActionResult Edit(F_NewsDTO news)
 {
     if (ModelState.IsValid)
     {
         this._IF_NewsService.Update(new List <F_NewsDTO> {
             news
         });
     }
     return(RedirectToAction("index"));
 }