Ejemplo n.º 1
0
 public Handler(
     DietContext context,
     ICurrentAccountProvider currentAccount, ICaloriesService caloriesService)
 {
     _context         = context;
     _currentAccount  = currentAccount;
     _caloriesService = caloriesService;
 }
Ejemplo n.º 2
0
 public HomeController(
     IIdentityService identityService,
     IRecipesService recipesService,
     IWorkoutsService workoutsService,
     ICurrentUserService currentUser,
     IMapper mapper,
     IMealsService mealsService,
     ICaloriesService caloriesService,
     IUserHistoryService userHistory)
 {
     this.identityService = identityService;
     this.recipesService  = recipesService;
     this.workoutsService = workoutsService;
     this.currentUser     = currentUser;
     this.mapper          = mapper;
     this.mealsService    = mealsService;
     this.caloriesService = caloriesService;
     this.userHistory     = userHistory;
 }