// GET: Edit public ActionResult Edit(int id) { AudiobookDetail detail = GetAudiobookService(id); var model = new AudiobookEdit { AudiobookId = detail.AudiobookId, Title = detail.Title, SeriesTitle = detail.SeriesTitle, Isbn = detail.Isbn, Rating = detail.Rating, Genre = detail.Genre, Language = detail.Language, Publisher = detail.Publisher, IsAbridged = detail.IsAbridged }; return(View(model)); }
public ActionResult Delete(int id) { AudiobookDetail bookToBeDeleted = GetAudiobookService(id); return(View(bookToBeDeleted)); }