Files
PhotoShare/ModelsLib/PhotoUnit.cs
T
Helri 356a53e8e9
build-deploy / deploy (push) Successful in 1m10s
correction path thumb
2026-08-01 19:54:57 +02:00

28 lines
538 B
C#

using Microsoft.AspNetCore.Mvc;
namespace ModelsLib
{
public class PhotoUnit
{
public PhotoUnit()
{
}
public PhotoUnit(string photoPath)
{
var directory = Path.GetDirectoryName(photoPath);
var filename = Path.GetFileName(photoPath);
Thumb = Path.Combine(directory!, "thumb", filename);
PhotoPath = photoPath;
}
public string Thumb { get; set; }
public string PhotoPath { get; set; }
}
}