Beispiel #1
0
        public PartialViewResult PartialResult(int employeeId, int addressTypeId)
        {
            EmployeeEntities employeeEntities = new EmployeeEntities();
            AddressEntity    addressEntity    = new AddressEntity();

            if (employeeId != 0)
            {
                if (addressTypeId >= 0) //employeeId > 0 ||
                {
                    employeeEntities = employeeManager.GetEmployee(employeeId);
                }
            }

            employeeEntities.AddressType = addressTypeId;
            employeeEntities.CountryList = new SelectList(countryManager.Countries(), "Id", "Name");
            return(PartialView("_AddressFields", employeeEntities));
        }