public void delete(long gallery_id)
        {
            try
            {
                using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required))
                {
                    var gallerycategory = _galleryRepository.getById(gallery_id);
                    if (gallerycategory == null)
                    {
                        throw new ItemNotFoundException($"gallery1 Category With Id {gallerycategory} doesnot Exist.");
                    }

                    _galleryRepository.delete(gallerycategory);
                    tx.Complete();
                }
            }

            catch (Exception)
            {
                throw;
            }
        }