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)); }
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)); }