diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-06 09:49:17 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-06 09:49:17 +0300 |
commit | e7cd6decdb2ba1088efa18adcac8da6607d517a6 (patch) | |
tree | 6c8ccbbbfb8f56832d2d6d8edc642e435c3ef072 | |
parent | fa3b9337a33e801b54000ed17b08851019395bf4 (diff) |
Refactoring
-rw-r--r-- | Controllers/ProductsController.cs | 6 |
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(); |