Пример #1
0
        public ActionResult Registration(RegistrationModel objRegistrationModel)
        {
            if (!ModelState.IsValid)
            {
                if (objRegistrationModel != null)
                {
                    objRegistrationModel.GetAllDropDownRegistration(objRegistrationModel);
                }
                else
                {
                    return(RedirectToAction("Registration", "Login"));
                }

                return(View(objRegistrationModel));
            }
            if (objRegistrationModel != null)
            {
                objRegistrationModel.AddEditRegistration(objRegistrationModel);
            }
            return(RedirectToAction("Index"));
        }