Exemplo n.º 1
0
        public PartialViewResult ViewTeamDetail(int TeamDetailId)
        {
            var videoStreamId = Guid.NewGuid();

            _videoStreamManager.RouteApiResource(videoStreamId);

            var model = new VideoStreamPartialViewModel();

            model.VideoStreamId = videoStreamId;

            switch (TeamDetailId)
            {
            case 1:
                return(PartialView("~/Views/Landing/Partials/TeamDetail1Partial.cshtml", model));

            case 2:
                return(PartialView("~/Views/Landing/Partials/TeamDetail2Partial.cshtml", model));

            case 3:
                return(PartialView("~/Views/Landing/Partials/TeamDetail3Partial.cshtml", model));

            case -1:
            default:
                /*
                 * Logging!
                 */
                return(PartialView("~/Views/Landing/Partials/TeamDetail1Partial.cshtml", model));
            }
        }