11
This commit is contained in:
@@ -427,7 +427,14 @@ namespace WebAPI.Controllers
|
||||
{
|
||||
person.PersonId = getPerson.PersonId;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(person.UnitId))
|
||||
{
|
||||
var unit = db.Base_Unit.FirstOrDefault(x => x.UnitCode == person.UnitId|| x.UnitName == person.UnitId);
|
||||
if (unit != null)
|
||||
{
|
||||
person.UnitId = unit.UnitId;
|
||||
}
|
||||
}
|
||||
person.PersonId = APIPersonService.SaveSitePerson(person);
|
||||
var getProject = ProjectService.GetProjectByProjectId(person.ProjectId);
|
||||
if (!string.IsNullOrEmpty(photourl) && getProject != null && getProject.IsFace == true)
|
||||
|
||||
Reference in New Issue
Block a user