public ActionResult Create(CreateRechtViewModel createRechtViewModel) { if (ModelState.IsValid) { RechtService.AddRecht(RechtViewModelService.Map_CreateRechtViewModel_Recht(createRechtViewModel)); return(RedirectToAction("Index")); } return(View(createRechtViewModel)); }
public Recht Map_CreateRechtViewModel_Recht(CreateRechtViewModel createRechtViewModel) { return(Mapper.Map <Recht>(createRechtViewModel)); }