public ActionResult Create(CreateAntwortViewModel createAntwortViewModel) { if (ModelState.IsValid) { AntwortService.AddAntwort(AntwortViewModelService.Map_CreateAntwortViewModel_Antwort(createAntwortViewModel)); return RedirectToAction("Index"); } return View(createAntwortViewModel); }
public Antwort Map_CreateAntwortViewModel_Antwort(CreateAntwortViewModel createAntwortViewModel) { return(Mapper.Map <Antwort>(createAntwortViewModel)); }