public MealsController(IMealService mealService, IMealEntryService mealEntryService, IUserService userService, IMapper mapper) { this.mapper = mapper; this.userService = userService; this.mealEntryService = mealEntryService; this.mealService = mealService; }
public MealEntriesController(IMealEntryService mealEntryService, IPetService petService) { _mealEntryService = mealEntryService; _petService = petService; CultureInfo nonInvariantCulture = new CultureInfo("en-US"); Thread.CurrentThread.CurrentCulture = nonInvariantCulture; }
public EditEntriesController(IWeightEntryService weightEntryService, IWeightEntryMapper weightEntryMapper, IPetService petService, IOptionsSnapshot <AppSettings> options, IMealEntryMapper mealEntryMapper, IMealEntryService mealEntryService, IActivityEntryService activityEntryService, IActivityEntryMapper activityEntryMapper) { _weightEntryMapper = weightEntryMapper; _weightEntryService = weightEntryService; _mealEntryService = mealEntryService; _mealEntryMapper = mealEntryMapper; _activityEntryMapper = activityEntryMapper; _activityEntryService = activityEntryService; _petService = petService; appData = options.Value; }
public MealEntriesProvider(ApplicationDbContext dataContext) { _mealEntryService = new MealEntryService(dataContext); _petService = new PetService(dataContext); PageSize = Convert.ToInt32(ConfigurationManager.AppSettings["pageSize"]); }