Esempio n. 1
0
        public ActionResult Register()
        {
            UserViewModel userViewModel = new UserViewModel();

            userViewModel.AddressViewModel           = new Address.ViewModels.AddressViewModel();
            userViewModel.AddressViewModel.CountryID = addressBL.GetDefaultCountry();
            _ViewDetails();
            return(View(userViewModel));
        }
Esempio n. 2
0
        public ActionResult CreateBranch()
        {
            ViewBagList();
            BranchInfoViewModel branchInfoView = new BranchInfoViewModel();

            branchInfoView.branchInfoBO                   = new BranchInfoBO();
            branchInfoView.branchInfoBO.Address           = new Address.ViewModels.AddressViewModel();
            branchInfoView.branchInfoBO.Address.CountryID = addressBL.GetDefaultCountry();
            return(PartialView("_CreateEditBranch", branchInfoView.branchInfoBO));
        }
Esempio n. 3
0
        public ActionResult CreateEmployee()
        {
            SetViewBag();   //ViewBag values set for all dropdowns in the Employee creation
            var employee = new EmployeeViewBO();

            employee.WorkingPatternDetailsBO    = new Employee_WorkingPatternDetailsBO();
            employee.AddressViewModel           = new AddressViewModel();
            employee.AddressViewModel.CountryID = addressBl.GetDefaultCountry();    //Sets the default country for Country's dropdown
            return(View("CreateEditEmployee", employee));
        }