public static BusinessObject.Customer ToBusinessObject(Entities.Customer entity)
        {
            if (entity == null)
                return null;

            BusinessObject.Customer businessObject = new BusinessObject.Customer
            {
                CustomerId = entity.CustomerId,
                PersonId = entity.PersonId
            };

            return businessObject;
        }
        public static BusinessObject.InventoryItem ToBusinessObject(Entities.InventoryItem entity)
        {
            if (entity == null)
                return null;

            BusinessObject.InventoryItem businessObject = new BusinessObject.InventoryItem(entity.CatalogItemId)
            {
                InventoryItemId = entity.InventoryItemId,
                OrderId = entity.OrderId,
                InventoryItemStatus = (Enumeration.InventoryItemStatus)entity.InventoryItemStatusId
            };

            return businessObject;
        }
        public static BusinessObject.UserAccount ToBusinessObject(Entities.UserAccess entity)
        {
            if (entity == null)
                return null;

            BusinessObject.UserAccount businessObject = new BusinessObject.UserAccount(
                entity.UserId,
                entity.PersonId,
                entity.UserName,
                entity.UserPassword,
                new PermissionSet(entity.PermissionToken),
                true);

            return businessObject;
        }
        public static BusinessObject.OrderItem ToBusinessObject(Entities.OrderItem entity)
        {
            if (entity == null)
                return null;

            BusinessObject.OrderItem businessObject = new BusinessObject.OrderItem
            {
                CatalogItem = new BusinessObject.CatalogItem(entity.CatalogItemId),
                ItemInscription = entity.ItemInscription,
                OrderId = entity.OrderId,
                OrderItemId = entity.OrderItemId,
                QuantityOrdered = entity.QuantityOrdered
            };

            return businessObject;
        }
        public static BusinessObject.Order ToBusinessObject(Entities.Order entity)
        {
            if (entity == null)
                return null;

            BusinessObject.Order businessObject = new BusinessObject.Order
            {
                OrderEntryDate = entity.OrderEntryDate,
                OrderFulfillDate = entity.OrderFulfillDate,
                OrderId = entity.OrderId,
                OrderStatus = (Enumeration.OrderStatus)entity.OrderStatusId,
                Person = new BusinessObject.Person(entity.PersonId)
            };

            return businessObject;
        }
        public static BusinessObject.Notification ToBusinessObject(Entities.Notification entity)
        {
            if (entity == null)
                return null;

            BusinessObject.Notification businessObject = new BusinessObject.Notification
            {
                OrderId = entity.OrderId,
                IsRead = entity.IsRead,
                NotificationId = entity.NotificationId,
                NotificationMessage = entity.NotificationMessage,
                NotificationType = (Enumeration.NotificationType)entity.NotificationTypeId
            };

            return businessObject;
        }
        public static BusinessObject.CatalogItem ToBusinessObject(Entities.CatalogItem entity)
        {
            if (entity == null)
                return null;

            BusinessObject.CatalogItem businessObject = new BusinessObject.CatalogItem(entity.CatalogItemId)
            {
                InscriptionType = (Enumeration.InscriptionType)entity.InscriptionTypeId,
                ItemCost = entity.ItemCost,
                Manufacturer = entity.Manufacturer,
                NumberInscriptionLines = entity.NumberInscriptionLines,
                NumberLineCharacters = entity.NumberLineCharacters,
                ItemName = entity.ItemName,
                ItemRetailPrice = entity.ItemRetailPrice
            };

            return businessObject;
        }
        public static BusinessObject.Address ToBusinessObject(Entities.Address entity)
        {
            if (entity == null)
                return null;

            BusinessObject.Address businessObject = new BusinessObject.Address
            {
                AddressId = entity.AddressId,
                PersonId = entity.PersonId,
                StreetNumber = entity.StreetNumber,
                StreetName = entity.StreetName,
                AddressCity = entity.AddressCity,
                AddressState = entity.AddressState,
                AddressZip = entity.AddressZip,
                AddressType = (Enumeration.AddressType)entity.AddressTypeId
            };

            return businessObject;
        }
        public static BusinessObject.Person ToBusinessObject(Entities.Person entity)
        {
            if (entity == null)
                return null;

            Enumeration.PersonType personType = (Enumeration.PersonType)entity.PersonTypeId;

            BusinessObject.Person businessObject = new BusinessObject.Person
            {
                EmailAddress = entity.PersonEmail,
                FirstName = entity.PersonFirstName,
                LastName = entity.PersonLastName,
                PersonId = entity.PersonId,
                PhoneNumber = entity.PersonPhone,
                PersonType = personType
            };

            return businessObject;
        }