summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-06-06 09:49:17 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-06-06 09:49:17 +0300
commite7cd6decdb2ba1088efa18adcac8da6607d517a6 (patch)
tree6c8ccbbbfb8f56832d2d6d8edc642e435c3ef072
parentfa3b9337a33e801b54000ed17b08851019395bf4 (diff)
Refactoring
-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();