Refactoring
This commit is contained in:
parent
fa3b9337a3
commit
e7cd6decdb
@ -90,13 +90,9 @@ namespace MyDarling.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
resizer.WriteResized(file, fullPath);
|
resizer.WriteResized(file, fullPath);
|
||||||
}
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(fullPath))
|
|
||||||
{
|
|
||||||
resizer.CreateThumbnail(fullPath);
|
resizer.CreateThumbnail(fullPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await context.SaveChangesAsync();
|
await context.SaveChangesAsync();
|
||||||
|
Loading…
Reference in New Issue
Block a user