예제 #1
0
 public TaskInputDto(TaskInput taskInput)
 {
     Id             = taskInput.Id;
     DateAssigned   = taskInput.DateAssigned;
     CaloriesGained = taskInput.CaloriesGained;
     CaloriesLost   = taskInput.CaloriesLost;
     Weight         = taskInput.Weight;
     Meals          = GetMeals(taskInput);
     Exercises      = GetExercises(taskInput);
 }
예제 #2
0
 private List <ExerciseInfo> GetExercises(TaskInput taskInput)
 {
     if (taskInput.Exercises == default)
     {
         return(default);