public IActionResult WhatWouldYouLIkeToDo() { var model = new WhatWouldYouLikeToDoViewModel(); return(View("../Apprenticeships/WhatWouldYouLikeToDo/Index", model)); }
public IActionResult WhatWouldYouLIkeToDo(WhatWouldYouLikeToDoViewModel theModel) { switch (theModel.ApprenticeshipWhatWouldYouLikeToDo) { case ApprenticeshipWhatWouldYouLikeToDo.Add: return(RedirectToAction("Index", "Apprenticeships")); case ApprenticeshipWhatWouldYouLikeToDo.Upload: return(RedirectToAction("Index", "BulkUploadApprenticeships")); case ApprenticeshipWhatWouldYouLikeToDo.View: return(RedirectToAction("Index", "ProviderApprenticeships")); default: return(RedirectToAction("Index", "Home")); } }