Beispiel #1
0
        public ActionResult LeaveConference(Guid ConferenceId)
        {
            var idString = User.Identity.GetUserId();
            var idMem    = _userService.GetUserIdByAspId(idString);

            var membership = _conService.GetMembership(ConferenceId, idMem);

            return(View("_LeaveConference", membership));
        }
Beispiel #2
0
        public ActionResult GetMembership(Guid confId)
        {
            var userId     = _userService.GetIdByAspId(User.Identity.GetUserId());
            var membership = _conferencService.GetMembership(confId, userId);
            var report     = _conferencService.GetReport(membership.ReportId);


            GetMyReportViewModel model = new GetMyReportViewModel
            {
                Title    = report.Title,
                Author   = report.Author,
                ReportId = report.Id
            };

            return(PartialView("_GetMembership", model));
        }