コード例 #1
0
        // GET: Antworts/Edit/5
        public ActionResult Edit(int? id)
        {
            if (id == null)
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
            }

            EditAntwortViewModel editAntwortViewModel =
               AntwortViewModelService.Map_Antwort_EditAntwortViewModel(AntwortService.SearchAntwortById(Convert.ToInt32(id)));

            if (editAntwortViewModel == null)
            {
                return HttpNotFound();
            }
            return View(editAntwortViewModel);
        }