public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } var presentation = _presentationRepository.GetPresentation((int)id); if (presentation == null) { return(NotFound()); } return(View(presentation)); }
public PresentationDto GetPresentation(int userId, short presentationId) { var presentation = _presentationRepository.GetPresentation(userId, presentationId); return(_mapper.Map <PresentationDto>(presentation)); }