//
 // GET: /Platform/SysDepartment/Edit/5
 public ActionResult Edit(Guid? id)
 {
     var item = new CustomerCommunication();
     if (id.HasValue)
     {
         item = _iCustomerCommunicationService.GetById(id.Value);
     }
     ViewBag.CustomerId = new SelectList(_iCustomerService.GetAll(), "Id", "CustomerName", item.CustomerId);
     return View(item);
 }
        public ActionResult Edit(Guid? id, CustomerCommunication collection)
        {
            if (!ModelState.IsValid)
            {
                ViewBag.CustomerId = new SelectList(_iCustomerService.GetAll(), "Id", "CustomerName",
                    collection.CustomerId);
                return View(collection);
            }

            _iCustomerCommunicationService.Save(id, collection);
            _unitOfWork.Commit();

            return RedirectToAction("Index");
        }