public List <ResourceEntity> GetAllResources()
        {
            List <ResourceEntity> result  = new List <ResourceEntity>();
            ResourcesRepository   resRepo = new ResourcesRepository();

            using (var uow = UnitOfWork.CreateUoW())
            {
                try
                {
                    var resList = resRepo.GetAllResources(uow);
                    result = resList.Select(x => EntitiesMapper.ToEntity(x)).ToList();
                }
                catch (Exception ex)
                {
                    DbLog.LogError("Error retrieving all resources", ex);
                    throw ex;
                }
            }
            return(result);
        }