Esempio n. 1
0
        public BookResponseViewModel Add(BookRequestViewModel book)
        {
            var bookEntity = _mapper.Map <Book>(book);
            var result     = _bookBusiness.Add(bookEntity);

            return(_mapper.Map <BookResponseViewModel>(result));
        }