28 lines
538 B
C#
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; }
|
|
|
|
|
|
|
|
}
|
|
}
|