Пример #1
0
 public ProgramDayService(FitnessAppContext context, IMapper mapper, IRepository <ProgramDay> repository, IDishService dishService, IProgramTypeService programTypeService)
 {
     _context            = context;
     _mapper             = mapper;
     _repository         = repository;
     _dishService        = dishService;
     _programTypeService = programTypeService;
 }
Пример #2
0
 public ProgramScheduleService(IRepository <ProgramSchedule> repository, IUserScheduleService userScheduleService
                               , IDishService dishService, IMapper mapper, FitnessAppContext context, IProgramTypeService typeService)
 {
     _programScheduleRepository = repository;
     _userScheduleService       = userScheduleService;
     _dishService        = dishService;
     _mapper             = mapper;
     _context            = context;
     _programTypeService = typeService;
 }
Пример #3
0
 /// <summary>
 /// Constructor for assigning value to database connection.
 /// </summary>
 /// <param name="databaseConnectionFactory"></param>
 public Programs(IDatabaseConnectionFactory databaseConnectionFactory, IConfiguration configuration, IOrganisationProgram orgProgram,
                 IPhotos photos, ISharedJPOSService sharedJPOSService, IProgramTypeService programTypeService)
     : base(databaseConnectionFactory)
 {
     _databaseConnectionFactory = databaseConnectionFactory ?? throw new ArgumentNullException(nameof(databaseConnectionFactory));
     _configuration             = configuration;
     _orgProgram         = orgProgram;
     _photos             = photos;
     _sharedJPOSService  = sharedJPOSService;
     _programTypeService = programTypeService;
 }
Пример #4
0
 public ProgramScheduleController(IProgramScheduleService programScheduleService, IMapper mapper, IProgramTypeService programTypeService)
 {
     _programScheduleService = programScheduleService;
     _mapper             = mapper;
     _programTypeService = programTypeService;
 }
 public ProgramTypeController(IProgramTypeService programTypeService, IMapper mapper)
 {
     _programTypeService = programTypeService;
     _mapper             = mapper;
 }