// GET: Editions/Details/5 public ActionResult Details(int id) { Editions editions = editionService.GetEditionById(id); EditionViewModel model = new EditionViewModel(); model.InjectFrom(editions); return(View(editions)); }
public ActionResult GetEditionDetails(Guid editionId) { var edition = _editionService.GetEditionById(editionId); var model = new EditionDetailsViewModel(); Mapper.Map(edition, model); return(View("EditionDetails", model)); }