change all save to database no folder anymore

This commit is contained in:
2026-09-19 22:37:43 +10:00
parent ba4976fce4
commit 75b49be476
4 changed files with 68 additions and 19 deletions
@@ -44,8 +44,10 @@ namespace FamilyTreeAPI.Repository
{
int result = default(int);
int statuscode = 0;
string error = "";
string error = "";//Other
string photoType = "2"; //
if (criteria.PhotoType.HasValue)
photoType = criteria.PhotoType.Value.ToString();
HttpContext? httpContext = _httpContext.HttpContext;
string loginName = "";
if (httpContext != null)
@@ -62,7 +64,7 @@ namespace FamilyTreeAPI.Repository
PersonPhoto model;
model = new();
model.PhotoType = photoType;
model = FillModel(model,criteria.PersonId, formfile.FileName);
using (var stream = new MemoryStream())