public IActionResult Delete(DailyRoutine dr)
 {
     repository.DeleteDailyRoutine(dr.Id);
     return(RedirectToAction("Detail", "Dog", new { id = dr.DogId }));
 }
        public IActionResult DeleteAssignedExercise(int routineId, string traineeId)
        {
            _dailyRoutineRepository.DeleteDailyRoutine(routineId);

            return(RedirectToAction("TraineeDetails", "Home", new { Id = traineeId }));
        }