// GET: EntityCustomer/Create
        public ActionResult Create()
        {
            var viewModel = new EntityCustomerOccupationViewModel();

            viewModel.EntityCustomer      = new EntityCustomer();
            viewModel.OccupationGroupList = db.EntityOccupationGroups.ToList();

            return(View(viewModel));
        }
        // GET: EntityCustomer/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            //EntityCustomer entityCustomer = db.EntityCustomers.Find(id);
            var viewModel = new EntityCustomerOccupationViewModel();

            viewModel.EntityCustomer      = db.EntityCustomers.Find(id);
            viewModel.OccupationGroupList = db.EntityOccupationGroups.ToList();
            if (viewModel.EntityCustomer == null)
            {
                return(HttpNotFound());
            }
            return(View(viewModel));
        }