Пример #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;
 }
Пример #3
0
 public WeightEntriesProvider(ApplicationDbContext dataContext)
 {
     _weightEntryService = new WeightEntryService(dataContext);
     _petService         = new PetService(dataContext);
     PageSize            = Convert.ToInt32(ConfigurationManager.AppSettings["pageSize"]);
 }