public static string GetProductsImagesFolderFullPath(this IHostingEnvironment env) { if (string.IsNullOrEmpty(productsImagesFolderFullPath)) { productsImagesFolderFullPath = $"{env.GetImagesFolderFullPath()}products/"; } return(productsImagesFolderFullPath); }