private ICommand _saveBusinessPartnerViewCommand, _closeBusinessPartnerViewCommand;//, _cleanUpCommand;
        #endregion

        #region Constructor
        public BusinessPartnerDetailViewModel()
        {
            if (_businessPartnerService != null)
            {
                _businessPartnerService.Dispose();
            }
            _businessPartnerService = new BusinessPartnerService();

            CheckRoles();

            Messenger.Default.Register <BusinessPartnerTypes>(this, (message) =>
            {
                BusinessPartnerType = message;
            });
        }
 public static void CleanUp()
 {
     if (_businessPartnerService != null)
     {
         _businessPartnerService.Dispose();
     }
 }
 public static void CleanUp()
 {
     //if (_unitOfWork != null)
     //    _unitOfWork.Dispose();
     if (_businessPartnerService != null)
     {
         _businessPartnerService.Dispose();
     }
     if (_paymentService != null)
     {
         _paymentService.Dispose();
     }
 }