private BackOfficeUserManagementResult CreateOrUpdateUser(BackOfficeUserManagementData userData, RequestTypeEnum requestType)
        {
            VBMCallDispatcher callDispatcher        = new VBMCallDispatcher();
            BackOfficeUserManagementRequest request = new BackOfficeUserManagementRequest {
                User = userData
            };

            request.RequestType = requestType;
            var response = new BackOfficeUserManagementResponse();

            response = callDispatcher.DispatchAction <BackOfficeUserManagementRequest, BackOfficeUserManagementResponse>(TransactionNameConstants.CreateUserTransaction, MethodTypeEnum.Execute, Channels.SharedAspects, request);
            return(response.Result);
        }
 public void UpdateUser(BackOfficeUserManagementData request)
 {
     CreateOrUpdateUser(request, RequestTypeEnum.Update);
 }
        // TODO For Atakan
        //public CustomMenuItem[] GetMenuList(MenuListRequestData request)
        //{
        //    VBMCallDispatcher callDispatcher = new VBMCallDispatcher();
        //    MenuListResponse menuListResponse = new MenuListResponse();
        //    MenuListRequest menuListRequest = new MenuListRequest();
        //    if (request==null)
        //    {
        //        return null;
        //    }
        //    try
        //    {
        //        menuListRequest.UserID = request.UserID;
        //        menuListRequest.CultureCode = request.CultureCode;
        //        menuListRequest.BackOfficeMenuType = request.BackOfficeMenuType;
        //        menuListResponse = callDispatcher.DispatchAction<MenuListRequest, MenuListResponse>(TransactionNameConstants.GetMenuListTransaction, MethodTypeEnum.Execute, Channels.SharedAspects, menuListRequest);
        //    }
        //    catch (Exception ex)
        //    {
        //        throw new FaultException(
        //        ex.Message,
        //        new FaultCode("Response Fault"));
        //    }
        //    if (menuListResponse == null)
        //        return null;

        //    return menuListResponse.MenuItems;
        //}
        #endregion

        #region User
        public BackOfficeUserManagementResult CreateUser(BackOfficeUserManagementData request)
        {
            return(CreateOrUpdateUser(request, RequestTypeEnum.Add));
        }