fixed save new person with partner list
This commit is contained in:
@@ -560,6 +560,14 @@ public partial class PersonRepository : IPerson
|
||||
_context.Persons.Add(model);
|
||||
var successid = await _context.SaveChangesAsync();
|
||||
result = model.Id;
|
||||
if (item.RelationShips != null)
|
||||
{
|
||||
for (int m = 0; m < item.RelationShips.Count; m++)
|
||||
{
|
||||
item.RelationShips[m].PersonId = result;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(container.FileName))
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user