Example #1
0
        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"));
            }
        }
Example #2
0
        public ActionResult <string> Get(Guid id)
        {
            var book = _bookLogic.GetBookById(id);

            return(StatusCode(StatusCodes.Status200OK, book));
        }
Example #3
0
        public ActionResult Details(int id)
        {
            var book = _bookLogic.GetBookById(id);

            return(View(book));
        }