|
|
@ -28,7 +28,7 @@ using (var context = new UserDbContext(options))
|
|
|
|
var userController = new UsersController(userLogger, new DataService<UserDTO, LessonDTO, InquiryDTO, ParagraphDTO, SuccessDTO>(context, new Shared.UserDataService(context), new LessonDataService(context), new InquiryDataService(context), new ParagraphDataService(context), new SuccessDataService(context)));
|
|
|
|
var userController = new UsersController(userLogger, new DataService<UserDTO, LessonDTO, InquiryDTO, ParagraphDTO, SuccessDTO>(context, new Shared.UserDataService(context), new LessonDataService(context), new InquiryDataService(context), new ParagraphDataService(context), new SuccessDataService(context)));
|
|
|
|
var inquiryController = new InquiriesController(new DataService<UserDTO, LessonDTO, InquiryDTO, ParagraphDTO, SuccessDTO>(context, new Shared.UserDataService(context), new LessonDataService(context), new InquiryDataService(context), new ParagraphDataService(context), new SuccessDataService(context)), inquiryLogger);
|
|
|
|
var inquiryController = new InquiriesController(new DataService<UserDTO, LessonDTO, InquiryDTO, ParagraphDTO, SuccessDTO>(context, new Shared.UserDataService(context), new LessonDataService(context), new InquiryDataService(context), new ParagraphDataService(context), new SuccessDataService(context)), inquiryLogger);
|
|
|
|
var paragraphController = new ParagraphsController(new ParagraphDataService(context), paragraphLogger);
|
|
|
|
var paragraphController = new ParagraphsController(new ParagraphDataService(context), paragraphLogger);
|
|
|
|
var lessonController = new LessonsController(new LessonDataService(context), lessonLogger);
|
|
|
|
var lessonController = new LessonsController(new DataService<UserDTO, LessonDTO, InquiryDTO, ParagraphDTO, SuccessDTO>(context, new Shared.UserDataService(context), new LessonDataService(context), new InquiryDataService(context), new ParagraphDataService(context), new SuccessDataService(context)), lessonLogger);
|
|
|
|
var successController = new SuccessesController(new SuccessDataService(context), successLogger);
|
|
|
|
var successController = new SuccessesController(new SuccessDataService(context), successLogger);
|
|
|
|
|
|
|
|
|
|
|
|
async void PrintUsers()
|
|
|
|
async void PrintUsers()
|
|
|
|