예제 #1
0
 public static ApplicationViewModel ToModel(this PermissionSystem.Models.Application entity)
 {
     return(entity.MapTo <PermissionSystem.Models.Application, ApplicationViewModel>());
 }
예제 #2
0
 public static PermissionSystem.Models.Application ToEntity(this ApplicationViewModel model,
                                                            PermissionSystem.Models.Application entity)
 {
     return(model.MapTo(entity));
 }