รวม code แก้บัก

This commit is contained in:
Nakorn Rientrakrunchai
2020-04-23 12:26:27 +07:00
parent a2a54c459d
commit f353f73d17
8 changed files with 40 additions and 22 deletions

View File

@@ -173,6 +173,8 @@ namespace TodoAPI2.Models
existingEntity.weight = model.weight;
existingEntity.score = model.score;
existingEntity.sumary = model.sumary;
existingEntity.score2 = model.score;
existingEntity.sumary2 = model.sumary;
existingEntity.target_score1 = model.target_score1;
existingEntity.target_score2 = model.target_score2;
existingEntity.target_score3 = model.target_score3;
@@ -212,13 +214,14 @@ namespace TodoAPI2.Models
//existingEntity.weight = i.weight;
existingEntity.score = i.score;
existingEntity.sumary = i.sumary;
existingEntity.score2 = i.score;
existingEntity.sumary2 = i.sumary;
//existingEntity.target_score1 = i.target_score1;
//existingEntity.target_score2 = i.target_score2;
//existingEntity.target_score3 = i.target_score3;
//existingEntity.target_score4 = i.target_score4;
//existingEntity.target_score5 = i.target_score5;
_repository.UpdateWithoutCommit(i.id.Value, existingEntity);
}
}