public ActionResult DiaryDetail(int id = 0) { if (id == 0) { return(RedirectToAction("Index")); } DiaryForDetailDto diaryForDetailDto = Mapper.Map <DiaryForDetailDto>(_diaryService.GetChosenDiary(id)); DiaryDetailViewModel diaryDetailViewModel = new DiaryDetailViewModel { Diary = diaryForDetailDto, Reviews = GetReviews(id) }; return(View(diaryDetailViewModel)); }