public async Task <CompanyFolderPath> getCompanyFilePathAsync(Company company)
        {
            var root = $"{company?.Id ?? 0}";
            CompanyFolderPath filePath = new CompanyFolderPath()
            {
                RootPath       = root,
                DefaultPath    = $"{root}/default",
                LogoPath       = $"{root}/logo",
                ProductionPath = $"{root}/production"
            };

            return(filePath);
        }
        public async Task <string> SaveCompanyLogo(CompanyFolderPath filePath, string type, string base64Data)
        {
            var path = await settingQueries.GetValueAsync(SettingKeys.Path_Company);

            string parentFolder = filePath.LogoPath;

            string fullPath = $"{path}/{parentFolder}";


            string filename = $"logo_{DateTime.Now.Ticks}.{type}";

            if (!Directory.Exists(fullPath))
            {
                Directory.CreateDirectory(fullPath);
            }

            File.WriteAllBytes($"{fullPath}/{filename}", Convert.FromBase64String(base64Data));
            return($"{parentFolder}/{filename}");
        }
        public async Task <ProductionFolderPath> getProductionFilePathAsync(Company company, Production production)
        {
            CompanyFolderPath companyFilePath = await getCompanyFilePathAsync(company);

            return(getProductionFilePath(companyFilePath.ProductionPath, production));
        }