Beispiel #1
0
        public ActionResult ManageVacanciesTransfers(ManageVacancyTransferViewModel vacancyTransferViewModel)
        {
            var response = _adminMediator.ManageVacanciesTransfers(vacancyTransferViewModel);

            ModelState.Clear();

            switch (response.Code)
            {
            case AdminMediatorCodes.TransferVacancy.Ok:
                SetUserMessage(response.Message.Text, response.Message.Level);
                return(View("TransferVacancies"));

            case AdminMediatorCodes.TransferVacancy.FailedTransfer:
                SetUserMessage(response.Message.Text, response.Message.Level);
                return(View("TransferVacancies"));

            default:
                throw new InvalidMediatorCodeException(response.Code);
            }
        }