Пример #1
0
 public DiscordSender(
     ClassRoomManager <ApplicationDbContext> classRoomManager,
     ILoggerFactory loggerFactory)
 {
     _classRoomManager = classRoomManager;
     _logger           = loggerFactory.CreateLogger <DiscordSender>();
 }
Пример #2
0
 public MigrateModel(
     ClassRoomManager <ApplicationDbContext> classRoomManager,
     UserManager <Student> userManager)
 {
     _classRoomManager = classRoomManager;
     _userManager      = userManager;
 }
 public AllocateClassroomController()
 {
     DepartmentManager = new DepartmentManager();
     RoomManager       = new RoomManager();
     DayManager        = new DayManager();
     CourseManager     = new CourseManager();
     ClassRoomManager  = new ClassRoomManager();
 }
Пример #4
0
 public AllocateClassRoomController()
 {
     departmentManager        = new DepartmentManager();
     courseManager            = new CourseManager();
     allocateClassRoomManager = new AllocateClassRoomManager();
     classRoomManager         = new ClassRoomManager();
     teacherManager           = new TeacherManager();
 }
Пример #5
0
 public PlanningController(
     IDistributedCache memoryCache,
     ClassRoomManager<ApplicationDbContext> classRoomManager,
     UserManager<Student> userManager)
 {
     _memoryCache = memoryCache;
     _classRoomManager = classRoomManager;
     _userManager = userManager;
 }
Пример #6
0
 public SubjectsController(
     ClassRoomManager <ApplicationDbContext> classRoomManager,
     SubjectManager <ApplicationDbContext> subjectManager,
     UserManager <Student> userManager)
 {
     _classRoomManager = classRoomManager;
     _subjectManager   = subjectManager;
     _userManager      = userManager;
 }
Пример #7
0
 public StudentsController(
     ApplicationDbContext context,
     ClassRoomManager <ApplicationDbContext> classRoomManager,
     IEmailSender emailSender,
     RoleManager <IdentityRole> roleManager,
     UserManager <Student> userManager)
 {
     _context          = context;
     _classRoomManager = classRoomManager;
     _emailSender      = emailSender;
     _roleManager      = roleManager;
     _userManager      = userManager;
 }
Пример #8
0
 public RegisterModel(
     ClassRoomManager <ApplicationDbContext> classRoomManager,
     RoleManager <IdentityRole> roleManager,
     SignInManager <Student> signInManager,
     UserManager <Student> userManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender)
 {
     _classRoomManager = classRoomManager;
     _roleManager      = roleManager;
     _signInManager    = signInManager;
     _userManager      = userManager;
     _logger           = logger;
     _emailSender      = emailSender;
 }
        public IEnumerable <SelectListItem> GetClassRoomForDropDown()
        {
            List <SelectListItem> selectListItems = new List <SelectListItem>()
            {
                new SelectListItem()
                {
                    Text = "---Select---", Value = ""
                },
            };
            List <ClassRoom> classRooms = new ClassRoomManager().GetAllClassRooms();

            foreach (ClassRoom classRoom in classRooms)
            {
                SelectListItem selectListItem = new SelectListItem();
                selectListItem.Text  = classRoom.RoomNo;
                selectListItem.Value = classRoom.Id.ToString();
                selectListItems.Add(selectListItem);
            }

            return(selectListItems);
        }
        public IEnumerable <SelectListItem> GetAllClassRoomList()
        {
            List <SelectListItem> selectedList = new List <SelectListItem>()
            {
                new SelectListItem()
                {
                    Text = "---Select---", Value = ""
                },
            };
            List <ClassRoom> classRooms = new ClassRoomManager().GetAllClassRooms();

            foreach (ClassRoom classRoom in classRooms)
            {
                SelectListItem aList = new SelectListItem();
                aList.Text  = classRoom.RoomNo;
                aList.Value = classRoom.Id.ToString();
                selectedList.Add(aList);
            }

            return(selectedList);
        }
Пример #11
0
 public ClassRoomsController(
     ClassRoomManager <ApplicationDbContext> classRoomManager)
 {
     _classRoomManager = classRoomManager;
 }
Пример #12
0
 public ClassRoomUi()
 {
     InitializeComponent();
     classRoomManager = new ClassRoomManager();
 }
        //
        // GET: /Unassign/

        public UnassignController()
        {
            TeacherManager   = new TeacherManager();
            ClassRoomManager = new ClassRoomManager();
        }