Exemple #1
0
 public ExamController(IUnitOfWork unitOfWork, IExamAppService examAppService,
                       ISqlRunner sqlRunner, IConfiguration configuration) : base(examAppService)
 {
     this.unitOfWork    = unitOfWork;
     this.sqlRunner     = sqlRunner;
     this.configuration = configuration;
 }
 public ExamInputViewModel(ICategoryAppService categoryAppService, IExamAppService examAppService, ISettingProvider setting, IEventAggregator ea)
 {
     SettingProvider = setting;
     EventAggregator = ea;
     CategoryService = categoryAppService;
     AppService      = examAppService;
     CreateCommand   = new DelegateCommand <ICloseable>(Create);
     Categories      = new ObservableCollection <CategoryDto>();
     Categories.AddRange(CategoryService.GetListAsync(new PagedAndSortedResultRequestDto()).Result.Items);
     Currency = SettingProvider.GetOrNullAsync(FacCigoSettings.PivotCurrency).Result;
 }
Exemple #3
0
 public ExamsViewModel(IExamAppService appService, IServiceProvider serviceProvider, IEventAggregator eventAggregator)
 {
     AppService          = appService;
     _serviceProvider    = serviceProvider;
     EventAggregator     = eventAggregator;
     SelectedCommand     = new DelegateCommand <object[]>(OnItemSelected);
     CreateCommand       = new DelegateCommand(Create);
     UpdateCommand       = new DelegateCommand(Update);
     AddToInvoiceCommand = new DelegateCommand(AddToInvoice);
     DeleteCommand       = new DelegateCommand(Delete);
     Items = new ObservableCollection <ExamDto>();
     Items.AddRange(AppService.GetListAsync().Result);
     EventAggregator.GetEvent <ExamUpdatedEvent>().Subscribe(OnExamUpdated);
     EventAggregator.GetEvent <ExamDeletedEvent>().Subscribe(OnExamDeleted);
     EventAggregator.GetEvent <ExamAddedEvent>().Subscribe(OnExamAdded);
 }
Exemple #4
0
 public CrudController(IExamAppService examAppService, IUnitOfWork unitOfWork) : base(examAppService)
 {
     this.unitOfWork = unitOfWork;
 }
 public ExamController(IHttpContextAccessor httpContextAccessor, IExamAppService examsAppService)
     : base(httpContextAccessor)
 {
     examsAppService = _examsAppService;
 }
 public CourseController(IUnitOfWork unitOfWork, IExamAppService examAppService) : base(examAppService)
 {
     this.unitOfWork = unitOfWork;
 }
Exemple #7
0
 public ExamController(IExamAppService examService)
 {
     this._examService = examService;
 }
 public QuestionTypeController(IUnitOfWork unitOfWork, IExamAppService examAppService) : base(examAppService)
 {
     this.unitOfWork = unitOfWork;
 }
Exemple #9
0
 public BaseController(IExamAppService examAppService)
 {
     this.examAppService = examAppService;
 }