コード例 #1
0
 private ExerciseTypeDTO MapExerciseType(ExerciseType model)
 {
     var modelDTO = new ExerciseTypeDTO
     {
         Id = model.Id,
         Name = model.Name,
         IsFavorite = model.IsFavorite,
         ApplicationUser = model.ApplicationUser
     };
     return modelDTO;
 }
コード例 #2
0
 private ExerciseTypeListViewModel MapExerciseTypeDTO(ExerciseTypeDTO model)
 {
     var viewModel = new ExerciseTypeListViewModel
     {
         Id = model.Id,
         Name = model.Name,
         IsFavorite = model.IsFavorite,
         ApplicationUser = model.ApplicationUser
     };
     return viewModel;
 }