// GET: Rechts/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DeleteRechtViewModel deleteRechtViewModel = RechtViewModelService.Map_Recht_DeleteRechtViewModel(RechtService.SearchRightById(Convert.ToInt32(id))); if (deleteRechtViewModel == null) { return(HttpNotFound()); } return(View(deleteRechtViewModel)); }
public Recht Map_DeleteRechtViewModel_Recht(DeleteRechtViewModel deleteRechtViewModel) { return(Mapper.Map <Recht>(deleteRechtViewModel)); }