Exemplo n.º 1
0
        public ActionResult Create(CreateFrageViewModel createFrageViewModel)
        {
            if (ModelState.IsValid)
            {
                FrageService.AddFrage(FrageViewModelService.Map_CreateFrageViewModel_Frage(createFrageViewModel));
                return(RedirectToAction("Index"));
            }

            return(View(createFrageViewModel));
        }
Exemplo n.º 2
0
 public Frage Map_CreateFrageViewModel_Frage(CreateFrageViewModel createFrageViewModel)
 {
     return(Mapper.Map <Frage>(createFrageViewModel));
 }