示例#1
0
        public WeightEntriesController(IWeightEntryService weightEntryService,
                                       IWeightEntryMapper weightEntryMapper, IPetService petService)
        {
            _weightEntryService = weightEntryService;
            _weightEntryMapper  = weightEntryMapper;
            _petService         = petService;
            CultureInfo nonInvariantCulture = new CultureInfo("en-US");

            Thread.CurrentThread.CurrentCulture = nonInvariantCulture;
        }
示例#2
0
 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;
 }