Beispiel #1
0
        // GET: Frages/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            DeleteFrageViewModel deleteFrageViewModel =
                FrageViewModelService.Map_Frage_DeleteFrageViewModel(FrageService.SearchFrageById(Convert.ToInt32(id)));

            if (deleteFrageViewModel == null)
            {
                return(HttpNotFound());
            }
            return(View(deleteFrageViewModel));
        }
Beispiel #2
0
 public Frage Map_DeleteFrageViewModel_Frage(DeleteFrageViewModel deleteFrageViewModel)
 {
     return(Mapper.Map <Frage>(deleteFrageViewModel));
 }