Exemplo n.º 1
0
 internal static List <KeyValuePairVm <TK, TV> > MapToKeyValuePairVm <TK, TV>(this List <KeyValuePair <TK, TV> > list)
 {
     return(list.ConvertAll <KeyValuePairVm <TK, TV> >((KeyValuePair <TK, TV> i) => CommonExtentions.GetKeyValuePairVm <TK, TV>(i.Key, i.Value)));
 }
Exemplo n.º 2
0
 internal static List <KeyValuePairVm <int, string> > MapToKeyValuePairVm(this List <Amenity> list)
 {
     return(list.ConvertAll <KeyValuePairVm <int, string> >((Amenity i) => CommonExtentions.GetKeyValuePairVm <int, string>(i.ClassId.Value, i.Name)));
 }