/// <summary> /// Starts the add. /// </summary> /// <param name="committeeId">Committee Id.</param> /// <returns>Redirect To Action.</returns> public async Task <IActionResult> StartAdd(Guid committeeId) { IWho who = this.Who(); this.logger.ReportExit( who, new { CommitteeId = committeeId }); ICommittee committee = await this.service .GetCommitteeByIdAsync(who, committeeId) .ConfigureAwait(false); AddViewModel model = AddViewModel.Create(committee); RedirectToActionResult redirect = this.RedirectToAction("Add", model); this.logger.ReportExitRedirectToAction( who, redirect.ControllerName, redirect.ActionName, redirect.RouteValues); return(redirect); }
/// <summary> /// Starts the add. /// </summary> /// <param name="organisationId">Organisation Id.</param> /// <returns>Redirect To Action.</returns> public async Task <IActionResult> StartAdd(Guid organisationId) { IWho who = this.Who(); this.logger.ReportEntry( who, new { OrganisationId = organisationId }); IOrganisation organisation = await this.service .GetOrganisationByIdAsync(who, organisationId) .ConfigureAwait(false); AddViewModel model = AddViewModel.Create(organisation); RedirectToActionResult redirect = this.RedirectToAction("Add", model); this.logger.ReportExitRedirectToAction( who, redirect.ControllerName, redirect.ActionName, redirect.RouteValues); return(redirect); }