public ActionResult New(GameWebModel game) { if (!ModelState.IsValid) { return(View(game)); } _gameService.Create(Mapper.Map <GameWebModel, GameBLModel>(game)); return(RedirectToAction("Games")); }
public ActionResult Update(GameWebModel game) { _gameService.Update(Mapper.Map <GameWebModel, GameBLModel>(game)); return(new HttpStatusCodeResult(HttpStatusCode.OK)); }