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();