//
        // GET: /Platform/SysDepartment/Edit/5

        public ActionResult Edit(Guid?id)
        {
            var item = new Customer();

            if (id.HasValue)
            {
                item = _iCustomerService.GetById(id.Value);
            }

            ViewBag.CustomerLevelId = _iCustomerLevelService.SelectList(item.CustomerLevelId);
            ViewBag.CustomerTypeId  = _iCustomerTypeService.SelectList(item.CustomerTypeId);


            ViewBag.BusinessStateId = _iBusinessStateService.SelectList(item.BusinessStateId);

            ViewBag.SysDepartment = _iSysDepartmentService.GetAll();

            ViewBag.BusinessChances = _iBusinessChanceService.GetAll(a => !a.Disable);

            return(View(item));
        }