change all save to database no folder anymore
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user