public int CreateLocationType(LocationTypeEntity locationTypeEntity)
        {
            using (var scope = new TransactionScope())
            {
                LocationType locationType = new LocationType();
                //
                locationType.Name = locationTypeEntity.Name;
                locationType.Type = locationTypeEntity.Type;
                //

                _unitOfWork.LocationTypeRepository.Insert(locationType);
                _unitOfWork.Save();
                scope.Complete();

                return locationType.LocationTypeId;
            }
        }
        public bool UpdateLocationType(int locationTypeId, LocationTypeEntity locationTypeEntity)
        {
            var success = false;
            if (locationTypeEntity != null)
            {
                using (var scope = new TransactionScope())
                {
                    LocationType locationType = _unitOfWork.LocationTypeRepository.GetByID(locationTypeId);
                    if (locationType != null)
                    {
                        //
                        locationType.LocationTypeId = locationTypeEntity.LocationTypeId;
                        locationType.Name = locationTypeEntity.Name;
                        locationType.Type = locationTypeEntity.Type;
                        //

                        _unitOfWork.LocationTypeRepository.Update(locationType);
                        _unitOfWork.Save();
                        scope.Complete();
                        success = true;
                    }
                }
            }
            return success;
        }