public ActivityEntriesProvider(ApplicationDbContext dataContext)
 {
     _activityEntryService = new ActivityEntryService(dataContext);
     _petService           = new PetService(dataContext);
     _activityTypeService  = new ActivityTypeService(dataContext);
     PageSize = Convert.ToInt32(ConfigurationManager.AppSettings["pageSize"]);
 }
        public ActivityEntriesController(IActivityEntryService activityEntryService,
                                         IPetService petService)
        {
            _activityEntryService = activityEntryService;
            _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;
 }
Exemple #4
0
 public ActivityEntryApiController(IActivityEntryService service, IAuthenticationService <int> auth)
 {
     _service = service;
     _auth    = auth;
 }