Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }