public static IList <TViewModel> ToViewModels <TModel, TViewModel>(this IList <TModel> models) where TModel : IEntitySet { IList <TViewModel> t = Mapping.Default <IList <TModel>, IList <TViewModel> >(models); return(t); }
public static TViewModel ToViewModel <TViewModel>(this IEntitySet entity) where TViewModel : class { TViewModel t = Mapping.Default <IEntitySet, TViewModel>(entity); return(t); }