Beispiel #1
0
        public List <string> GetBreadCrumbs(SuccessStoryVM model)
        {
            var breadcrumb = new List <string>();

            breadcrumb.Add(_helper.ActionLink <ClientController>(c =>
                                                                 c.PrivatePerson(SimplePages.Urls.SuccessStories, null),
                                                                 "Истории успеха").ToString());
            return(breadcrumb);
        }
Beispiel #2
0
        public ActionResult SuccessStory(int storyID)
        {
            var successStory = SuccessStoryService.GetByPK(storyID);
            var model        = new SuccessStoryVM {
                SuccessStory = successStory,
                CourseLink   = CourseService.AllCourseLinks().GetValueOrDefault(successStory.Course_TC),
                Images       = UserImages.GetSuccessStoryFilesForResponse(storyID),
            };

            return(View(model));
        }