// Added by Soma on 26/7/19
        bool IResourceAdmin.ResetResources(Guid tenantId, List <Resource> staticResource, string defaultLanguage = "en-US") //InitilizeResponseMessage List<Resource>
        {
            //List<Resource> resourceList = new List<Resource>();
            var responses = new InitilizeResponseMessage();

            responses.Info = new List <Informatiom> ();
            if (staticResource.Count > 0)
            {
                dataResource.ResetResources(tenantId, staticResource, defaultLanguage = "en-US");  //"en-US"
            }
            var rootTenantCode = _review.getRootTenantCode();
            var info           = new Informatiom();

            if (rootTenantCode == Guid.Empty)
            {
                info.ErrorLevel = 1;
                info.Message    = "Root tenant not found.";
                responses.Info.Add(info);
                return(false); // resourceList responses;
            }

            List <TypeInfo> metadataClasses = Assembly
                                              .GetEntryAssembly()
                                              .GetReferencedAssemblies()
                                              .Select(Assembly.Load)
                                              .SelectMany(x => x.DefinedTypes)
                                              .Where(type =>
                                                     (typeof(EntityBase).GetTypeInfo().IsAssignableFrom(type.AsType()) ||
                                                      typeof(PicklistBase).GetTypeInfo().IsAssignableFrom(type.AsType())) &&
                                                     !type.IsAbstract).ToList();

            if (metadataClasses.Count > 0)
            {
                _initManager.InitilizeResources(rootTenantCode, tenantId, metadataClasses);
            }
            else
            {
                _initManager.InitilizeResources(rootTenantCode, tenantId);
            }
            return(true);
            //int totCount = 0;
            //resourceList = dataResource.GetResourcesDetails(tenantId, 0, 0, "key", ref totCount, defaultLanguage); //    .GetResources(tenantId);
            //return (resourceList);
        }
        List <Resource> IResourceAdmin.GetResourcesForRepair(Guid tenantId, string defaultLanguage = "en-US") //InitilizeResponseMessage List<Resource> // , string defaultLanguage = "en-US"
        {
            List <Resource> resourceList = new List <Resource> ();
            var             responses    = new InitilizeResponseMessage();

            responses.Info = new List <Informatiom> ();

            var rootTenantCode = _review.getRootTenantCode();
            var info           = new Informatiom();

            if (rootTenantCode == Guid.Empty)
            {
                info.ErrorLevel = 1;
                info.Message    = "Root tenant not found.";
                responses.Info.Add(info);
                return(null); // resourceList responses;
            }

            List <TypeInfo> metadataClasses = Assembly
                                              .GetEntryAssembly()
                                              .GetReferencedAssemblies()
                                              .Select(Assembly.Load)
                                              .SelectMany(x => x.DefinedTypes)
                                              .Where(type =>
                                                     (typeof(EntityBase).GetTypeInfo().IsAssignableFrom(type.AsType()) ||
                                                      typeof(PicklistBase).GetTypeInfo().IsAssignableFrom(type.AsType())) &&
                                                     !type.IsAbstract).ToList();

            if (metadataClasses.Count > 0)
            {
                resourceList = _initManager.InitialiseForRepairResources(rootTenantCode, tenantId, metadataClasses);
            }
            else
            {
                resourceList = _initManager.InitialiseForRepairResources(rootTenantCode, tenantId);
            }
            return(resourceList);
        }