summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Controllers/ProductsController.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Controllers/ProductsController.cs b/Controllers/ProductsController.cs
index 9c1cdd2..4045427 100644
--- a/Controllers/ProductsController.cs
+++ b/Controllers/ProductsController.cs
@@ -90,13 +90,9 @@ namespace MyDarling.Controllers
}
resizer.WriteResized(file, fullPath);
- }
-
- if (!string.IsNullOrEmpty(fullPath))
- {
resizer.CreateThumbnail(fullPath);
}
-
+
try
{
await context.SaveChangesAsync();