Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Remove info dtos
Browse files Browse the repository at this point in the history
  • Loading branch information
SSchulze1989 committed Jan 14, 2021
1 parent dd7ec8f commit f14449c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion DataManager/ModelMapperProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ public ModelMapperProfile(IModelCache modelCache)
}
var mapper = context.Mapper;
var destMultiScorings = src.Scorings.Select((x, i) => new MyKeyValuePair<ScoringInfo, double>(mapper.Map<ScoringModel>(x), factors.ElementAt(i)));
//var destMultiScorings = src.Scorings.Select((x, i) => new MyKeyValuePair<ScoringInfo, double>(mapper.Map<ScoringModel>(x), factors.ElementAt(i)));
var destMultiScorings = src.ScoringIds.Select((x, i) => new MyKeyValuePair<ScoringInfo, double>(mapper.Map<ScoringInfo>(modelCache.PutOrGetModel(new ScoringInfo(x))), factors.ElementAt(i)));
return new ObservableCollection<MyKeyValuePair<ScoringInfo, double>>(destMultiScorings);
}))
.ForMember(dest => dest.Scorings, opt => opt.UseDestinationValue())
Expand Down
6 changes: 3 additions & 3 deletions iRLeagueManager/ViewModels/IncidentReviewViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ public ObservableViewModelCollection<ReviewCommentViewModel, ReviewCommentModel>
}
}

//private SessionViewModel session;
//public SessionViewModel Session { get => session; set => SetValue(ref session, value); }
public long SessionId => SessionId;
private SessionViewModel session;
public SessionViewModel Session { get => session; set => SetValue(ref session, value); }
//public long SessionId => SessionId;

private MemberListViewModel memberList;
public MemberListViewModel MemberList { get => memberList; set => SetValue(ref memberList, value); }
Expand Down

0 comments on commit f14449c

Please sign in to comment.