public ActionResult Details(int id) { try { return(View(_mapper.Map <ReadBookVM>(_bookLogic.GetBookById(id)))); } catch (Exception ex) { Logger.Error(ex.Message); return(RedirectToAction("Index", "PrintEdition")); } }
public ActionResult <string> Get(Guid id) { var book = _bookLogic.GetBookById(id); return(StatusCode(StatusCodes.Status200OK, book)); }
public ActionResult Details(int id) { var book = _bookLogic.GetBookById(id); return(View(book)); }