コード例 #1
0
 public static MaterialGroupDetailsPageViewModel ToDetailsViewModel(this MaterialGroup entity)
 {
     return(entity.MapTo <MaterialGroup, MaterialGroupDetailsPageViewModel>());
 }
コード例 #2
0
 public static MaterialGroupDetailsPageViewModel ToDetailsViewModel(this MaterialGroup entity, MaterialGroupDetailsPageViewModel viewModel)
 {
     return(entity.MapTo(viewModel));
 }
コード例 #3
0
 // from entity to view model
 /// <summary>
 ///
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static MaterialGroupListItemViewModel ToListItemViewModel(this MaterialGroup entity)
 {
     return(entity.MapTo <MaterialGroup, MaterialGroupListItemViewModel>());
 }