public static ReviewSession ToSession(this ReviewIndex index, IReadContext <ReviewSession> readContext) { var session = readContext.Get(index.Id); return(Mapper.Map(index, session)); }
public static ReviewSession ToNewSession(this ReviewIndex index) { return(Mapper.Map <ReviewSession>(index)); }