// GET: Queen/Delete/5 public ActionResult Delete(int id) { var svc = new QueenService(); var model = svc.GetQueenById(id); return(View(model)); }
// GET: Queen/Edit/5 public ActionResult Edit(int id) { var service = new QueenService(); var detail = service.GetQueenById(id); var model = new QueenEdit { Age = detail.Age, Color = detail.Color, OriginDate = detail.OriginDate, OriginLocation = detail.OriginLocation, }; return(View(model)); }