コード例 #1
0
        public IActionResult Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var presentation = _presentationRepository.GetPresentation((int)id);

            if (presentation == null)
            {
                return(NotFound());
            }

            return(View(presentation));
        }
コード例 #2
0
        public PresentationDto GetPresentation(int userId, short presentationId)
        {
            var presentation = _presentationRepository.GetPresentation(userId, presentationId);

            return(_mapper.Map <PresentationDto>(presentation));
        }