using Microsoft.AspNetCore.Mvc; namespace ModelsLib { public class PhotoUnit { public PhotoUnit() { } public PhotoUnit(string photoPath) { Thumb = photoPath.Insert(photoPath.LastIndexOf("\\") + 1, "thumb\\"); PhotoPath = photoPath; } public string Thumb { get; set; } public string PhotoPath { get; set; } } }