public InstructorController(IInstructorService service, IUserService userService, ICoordinatorService coordinatorService, ICourseService courseService, IOwnerService ownerService, IStudentService studentService)
 {
     this._service           = service;
     this.userService        = userService;
     this.coordinatorService = coordinatorService;
     this.courseService      = courseService;
     this.ownerService       = ownerService;
     this.studentService     = studentService;
 }
Ejemplo n.º 2
0
 public ClassController(IClassService classService, ICourseService courseService, IUserService userService, IOwnerService ownerService, ICoordinatorService coordinatorService, IInstructorService instructorService)
 {
     this._classService       = classService;
     this._courseService      = courseService;
     this._userService        = userService;
     this._ownerService       = ownerService;
     this._coordinatorService = coordinatorService;
     this._instructorService  = instructorService;
 }
Ejemplo n.º 3
0
 public AttendanceController(IAttendanceService service, IUserService userService, ICoordinatorService coordinatorService, IClassService classService, IStudentService studentService, IInstructorService instructorService)
 {
     this._service            = service;
     this._userService        = userService;
     this._coordinatorService = coordinatorService;
     this._classService       = classService;
     this._studentService     = studentService;
     this._instructorService  = instructorService;
 }
 public StudentController(IStudentService service, IUserService userService, IInstructorService InstructorService, ICoordinatorService coordinatorService, IOwnerService ownerService, ICourseService courseService)
 {
     this._service           = service;
     this.userService        = userService;
     this.InstructorService  = InstructorService;
     this.CoordinatorService = coordinatorService;
     this.OwnerService       = ownerService;
     this.CourseService      = courseService;
 }
 public SubjectController(ISubjectService service, IUserService userService, IInstructorService instructorService, IStudentService studentService, ICoordinatorService coordinatorService, IClassService classService, ICourseService courseService, IOwnerService ownerService)
 {
     this._service            = service;
     this._userService        = userService;
     this._instructorService  = instructorService;
     this._studentService     = studentService;
     this._coordinatorService = coordinatorService;
     this._classService       = classService;
     this._courseService      = courseService;
     this._ownerService       = ownerService;
 }
Ejemplo n.º 6
0
 public CoordinatorController(ICoordinatorService service, IUserService userService)
 {
     this._service    = service;
     this.userService = userService;
 }
 public FacultyCoordinatorsController(ICoordinatorService CoordinatorService, IMapper mapper)
 {
     _coordinatorService = CoordinatorService;
     _mapper             = mapper;
 }
 public CoordinatorsController(ICoordinatorService coordinatorService, IMapper mapper)
 {
     _coordinatorService = coordinatorService;
     _mapper             = mapper;
 }
Ejemplo n.º 9
0
        static void Main(string[] args)
        {
            var                 provider           = new Dependencies().Load();
            IClientService      clientService      = provider.GetService <IClientService>();
            ICarService         carService         = provider.GetService <ICarService>();
            IWorkerService      workerService      = provider.GetService <IWorkerService>();
            IDocumentService    documentService    = provider.GetService <IDocumentService>();
            ICoordinatorService coordinatorService = provider.GetService <ICoordinatorService>();

            var coo = coordinatorService.GetCoordinator(2);

            Dictionary <string, string> stringQuery = new Dictionary <string, string>();
            Dictionary <string, int[]>  intQuery    = new Dictionary <string, int[]>();

            stringQuery.Add("Brand", "Porsche");
            stringQuery.Add("Model", "Cayenne");
            int[] zakres = { 2017, 2019 };
            intQuery.Add("Year", zakres);

            var cars = carService.FilterCars(stringQuery, null, null);

            foreach (var car in cars)
            {
                Console.WriteLine(car.Description);
            }

            var clients = clientService.GetAllClients();


            /*var worker = new AddWorkerDto { FirstName = "Krzysztof", LastName = "Nowak", Email =
             *                              "*****@*****.**", PhoneNumber = "123321123", Salary = 3405m };
             * workerService.AddWorker(1, worker);
             *
             * var car = new AddCarDto
             * {
             *  Brand = "Porsche",
             *  Model = "Cayenne",
             *  Engine = "v8",
             *  Year = 2018,
             *  Transmission = "Automatic",
             *  FuelType = "Gasoline",
             *  Color = "Black",
             *  PricePerDay = 350.30m,
             *  Mileage = 5000,
             * };
             * carService.AddCar(car);
             *
             * var client = clientService.GetClient(4);
             * var updateClient = new UpdateClientDto() { Pesel = "2137" };
             * Console.WriteLine(client.description);
             * var updatedClient = clientService.UpdateClient(4, updateClient);
             * Console.WriteLine(updatedClient.description);
             *
             *
             * var clients = clientService.GetAllClients();
             * foreach(var client in clients)
             * {
             *  Console.WriteLine(client.description);
             * }
             * Console.WriteLine("--------------------------------------------");
             *
             * var gotclient = clientService.GetClient(4);
             * Console.WriteLine(gotclient.description);
             *
             * Console.WriteLine("--------------------------------------------");
             * Dictionary<string, string> query = new Dictionary<string, string>();
             * query.Add("FirstName", "om");
             *
             * var filteredClients = clientService.FilterClients(query, null);
             * foreach(var filteredClient in filteredClients)
             * {
             *  Console.WriteLine(filteredClient.description);
             * }
             *
             */
        }