Exemplo n.º 1
0
        public ActionResult PostRegistrationInterview(RegistrationInterviewRegister registrationInterviewRegister)
        {
            Account account = (Account)Session[CommonConstants.USER_SESSION];

            if (account == null || account.RoleId != 3)
            {
                return(RedirectToRoute("login"));
            }
            RegistrationPrice registrationPrice = (RegistrationPrice)Session[CommonConstants.REGISTRATION_PRICE];

            RegistrationInterview registrationInterview = registrationInterviewRepository.CreateRegistrationInterview(registrationInterviewRegister.CandidateName, registrationInterviewRegister.IdentifyCard, account.ManagementUnitId, registrationPrice.Value, account.Id);

            Session.Add(CommonConstants.REGISTED_INTERVIEW, registrationInterview);
            return(RedirectToRoute("inhoadon"));
        }