void LoadOperation_ActionCompleted(object sender, EventArgs e)
 {
     ActionEntityList.Clear();
     LoadOperation loadOperation = sender as LoadOperation;
     foreach (ProductManager.Web.Model.action action in loadOperation.Entities)
     {
         ActionEntity actionEntity = new ActionEntity();
         actionEntity.Action = action;
         actionEntity.Update();
         ActionEntityList.Add(actionEntity);
     }
     UpdateRoleAndRoleAction();
 }
 void LoadOperation_ActionCompleted(object sender, EventArgs e)
 {
     ActionEntityList.Clear();
     LoadOperation loadOperation = sender as LoadOperation;
     foreach (ProductManager.Web.Model.action action in loadOperation.Entities)
     {
         ActionEntity actionEntity = new ActionEntity();
         actionEntity.Action = action;
         actionEntity.Update();
         ActionEntityList.Add(actionEntity);
     }
     /*LoadOperation<ProductManager.Web.Model.role> loadOperationRole
         = systemManageDomainContext.Load<ProductManager.Web.Model.role>(systemManageDomainContext.GetRoleQuery());
     loadOperationRole.Completed += loadOperation_RoleCompleted;*/
     LoadOperation<ProductManager.Web.Model.department> loadOperationDepartment
         = systemManageDomainContext.Load<ProductManager.Web.Model.department>(systemManageDomainContext.GetDepartmentQuery());
     loadOperationDepartment.Completed += loadOperationDepartment_Completed;
 }