public SchedulesController( ISchedulesService schedulesService, UserManager <ApplicationUser> userManager, IScheduleDaysService scheduleDaysService) { this.schedulesService = schedulesService; this.userManager = userManager; this.scheduleDaysService = scheduleDaysService; }
public MyConferencesViewModel(ISettingsService settingsService, ISchedulesService schedulesService) { _schedulesService = schedulesService; _settingsService = settingsService; _myConferences = new ObservableCollection <Conference> (); this.LoadSchedulesCommand = new RelayCommand(async() => await this.LoadSchedules(Priority.UserInitiated), CanLoadSchedules); }
public MyConferencesViewModel (ISettingsService settingsService, ISchedulesService schedulesService) { _schedulesService = schedulesService; _settingsService = settingsService; _myConferences = new ObservableCollection<Conference> (); this.LoadSchedulesCommand = new RelayCommand(async () => await this.LoadSchedules(Priority.UserInitiated), CanLoadSchedules); }
public WeeklySchedulesPageViewModel(ISchedulesService schedulesService, IDialogHost dialogHost) { _schedulesService = schedulesService; _dialogHost = dialogHost; WeeklySchedules = new ObservableCollection <WeeklySchedule>(_schedulesService.Get()); }
public DashboardController( IApplicationUserService applicationUserService, ISchedulesService schedulesService, ICompaniesService companiesService, ISectionsService sectionsService, ITeamsService teamsService) { this.applicationUserService = applicationUserService; this.schedulesService = schedulesService; this.companiesService = companiesService; this.sectionsService = sectionsService; this.teamsService = teamsService; }
/// <summary> /// Конструктор /// </summary> /// <param name="carService">сервис работы с автомобилями</param> /// <param name="driverService">сервис работы с водителями</param> /// <param name="schedulesService">сервис работы с графиком работ</param> public SchedulesController( ICarService carService, IDriverService driverService, ISchedulesService schedulesService ) { this._carService = carService; this._driverService = driverService; this._schedulesService = schedulesService; }
public ConferenceDetailViewModel (Conference conference, ISchedulesService schedulesService, ISettingsService settingsService) { Conference = conference; _schedulesService = schedulesService; _settingsService = settingsService; Name = conference.Name; Description = conference.Description; StartDate = conference.StartDate.Value; EndDate = conference.EndDate; this.AddToScheduleCommand = new RelayCommand(async () => await this.AddToSchedule(Priority.UserInitiated), CanAddToSchedule); this.RemoveFromScheduleCommand = new RelayCommand(async () => await this.RemoveFromSchedule(Priority.UserInitiated), CanRemoveFromSchedule); }
public ConferenceDetailViewModel(Conference conference, ISchedulesService schedulesService, ISettingsService settingsService) { Conference = conference; _schedulesService = schedulesService; _settingsService = settingsService; Name = conference.Name; Description = conference.Description; StartDate = conference.StartDate.Value; EndDate = conference.EndDate; this.AddToScheduleCommand = new RelayCommand(async() => await this.AddToSchedule(Priority.UserInitiated), CanAddToSchedule); this.RemoveFromScheduleCommand = new RelayCommand(async() => await this.RemoveFromSchedule(Priority.UserInitiated), CanRemoveFromSchedule); }
/// <summary> /// Конструктор с внедрением зависимости /// </summary> /// <param name="schedulesService">Сервис для работы c графиком работ</param> public SchedulesApiController(ISchedulesService schedulesService) { this.schedulesService = schedulesService; }
/// <summary> /// Создать Api с переданными сервисами. /// </summary> /// <param name="facultiesService"></param> /// <param name="schedulesService"></param> public Api(IFacultiesService facultiesService, ISchedulesService schedulesService) { _facultiesService = facultiesService; _schedulesService = schedulesService; }
public SchedulesController(ISchedulesService schedulesService, IMapper mapper) { _schedulesService = schedulesService; _mapper = mapper; }
public ScheduleController(IEmployeesService EmployeeService, UserManager <ApplicationUser> userManager, ISchedulesService scheduleManager) { _employeeService = EmployeeService; _userManager = userManager; _scheduleManager = scheduleManager; }
public ConferencesService(IApiService apiService, ISchedulesService schedulesService) { _apiService = apiService; _schedulesService = schedulesService; }
public SchedulesController(ISchedulesService SchedulesService) { _schedulesService = SchedulesService; }