Merge branch 'Test_IRC_Net8' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
c1c5add001
|
@ -546,8 +546,9 @@ namespace IRaCIS.Application.Services
|
||||||
var self = result.Where(x => x.VisitTaskId == inDto.VisitTaskId).FirstOrDefault();
|
var self = result.Where(x => x.VisitTaskId == inDto.VisitTaskId).FirstOrDefault();
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
var otherList = result.Where(x => x.VisitTaskId != inDto.VisitTaskId).OrderBy(x => random.Next()).ToList();
|
var otherList = result.Where(x => x.VisitTaskId != inDto.VisitTaskId).OrderBy(x => random.Next()).ToList();
|
||||||
var newList = new List<GetRelatedVisitTaskOutDto>() { self };
|
var newList = new List<GetRelatedVisitTaskOutDto>() { };
|
||||||
newList.AddRange(otherList);
|
newList.AddRange(otherList);
|
||||||
|
newList.Add(self);
|
||||||
result = newList;
|
result = newList;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue