public G_NewsDTO Create(G_NewsDTO dto) { var account = base.F_Create <G_NewsDTO, G_News>(dto , _IG_NewsRepository , dtoAction => { }); return(account); }
public ActionResult Create(G_NewsDTO news) { if (ModelState.IsValid) { this._IG_NewsService.Create(news); } return(RedirectToAction("index")); }
public ActionResult Edit(G_NewsDTO news) { if (ModelState.IsValid) { this._IG_NewsService.Update(new List <G_NewsDTO> { news }); } return(RedirectToAction("index")); }