private IActionResult RedirectToOriginForDelete(DeleteDraftApprenticeshipOrigin origin, string accountHashedId, string cohortReference, string draftApprenticeshipHashedId) { return((origin == DeleteDraftApprenticeshipOrigin.CohortDetails) ? RedirectToCohortDetails(accountHashedId, cohortReference) : RedirectToAction("Details", new { accountHashedId, cohortReference, draftApprenticeshipHashedId })); }
public DeleteDraftApprenticeshipTestsFixture WithDeleteDraftApprenticeshipRequest(DeleteDraftApprenticeshipOrigin origin) { DeleteDraftApprenticeshipRequest = new DeleteApprenticeshipRequest { AccountHashedId = AccountHashedId, CohortId = CohortId, DraftApprenticeshipId = DraftApprenticeshipId, Origin = origin, CohortReference = CohortReference, DraftApprenticeshipHashedId = DraftApprenticeshipHashedId }; return(this); }