public async Task <IActionResult> AboutEmployer(AboutEmployerEditModel m) { var response = await _orchestrator.PostAboutEmployerEditModelAsync(m, User.ToVacancyUser()); if (!response.Success) { response.AddErrorsToModelState(ModelState); } var vm = await _orchestrator.GetAboutEmployerViewModelAsync(m); if (!ModelState.IsValid) { return(View(vm)); } if (_feature.IsFeatureEnabled(FeatureNames.EmployerTaskList)) { if (!vm.IsTaskListCompleted) { return(RedirectToRoute(RouteNames.EmployerContactDetails_Get)); } return(RedirectToRoute(RouteNames.EmployerCheckYourAnswersGet)); } return(RedirectToRoute(RouteNames.Vacancy_Preview_Get)); }
public async Task <IActionResult> AboutEmployer(AboutEmployerEditModel m) { var response = await _orchestrator.PostAboutEmployerEditModelAsync(m, User.ToVacancyUser()); if (!response.Success) { response.AddErrorsToModelState(ModelState); } if (!ModelState.IsValid) { var vm = await _orchestrator.GetAboutEmployerViewModelAsync(m); return(View(vm)); } return(RedirectToRoute(RouteNames.Vacancy_Preview_Get)); }
public async Task PostAboutEmployerEditModelAsync(AboutEmployerEditModel model) { await Sut.PostAboutEmployerEditModelAsync(model, User); }