public ActionResult Register() { var departments = _departmentManager.GetAll() ?? new List <Department>(); ViewBag.Departments = new SelectList(departments, "Id", "Name"); return(View()); }
public ActionResult CourseAssignToTeacher() { ViewBag.Departments = departmentManager.GetAll(); // ViewBag.Teachers = teacherManager.GetAllTeacher(); //ViewBag.Courses = courseManager.GetAll(); return(View()); }
public ActionResult AllocateClassRoom() { ViewBag.AllDepartment = aDepartmentManager.GetAll(); ViewBag.AllClassRoom = aRoomManager.GetAllRooms(); ViewBag.AllDays = aDayManager.GetAllDays(); return(View()); }
// // GET: /ClassRoom/ public ActionResult Index() { ViewBag.Departments = departmentManager.GetAll(); classRooms = classRoomManager.GetAllClassSchedules; ViewBag.ClassSchedule = classRooms; return(View()); }
public ActionResult Index() { List <Department> departments = departmentManager.GetAll(); ViewBag.Departments = departments; List <Teacher> teachers = new List <Teacher> { new Teacher { Id = ' ', Name = "--Select--" } }; ViewBag.Teachers = teachers; List <Course> courses = new List <Course> { new Course { Id = ' ', Code = "--Select--", CourseName = "", Credit = ' ' } }; ViewBag.Courses = courses; return(View()); }
public ActionResult Save() { IEnumerable <Department> departments = departmentManager.GetAll(); ViewBag.Departments = departments; return(View()); }
// // GET: /AllocateClassroom/ public ActionResult Save() { AllocateClassroomManager allocateClassroomManager = new AllocateClassroomManager(); ViewBag.Departments = departmentManager.GetAll(); ViewBag.Rooms = allocateClassroomManager.GetAllRoom(); return(View()); }
// GET: Employees/Create public ActionResult Create() { ViewBag.BranchId = new SelectList(_branchManager.GetAll(), "Id", "Name"); ViewBag.DepartmentId = new SelectList(_departmentManager.GetAll(), "Id", "Name"); ViewBag.DesignationId = new SelectList(_designationManager.GetAll(), "Id", "Name"); ViewBag.OrganizationId = new SelectList(_organizationManager.GetAll(), "Id", "Name"); return(View()); }
public ActionResult Save() { var departments = _departmentManager.GetAll() ?? new List <Department>(); var semesters = _semesterManager.GetAll() ?? new List <Semester>(); ViewBag.Semesters = new SelectList(semesters, "Id", "Name"); ViewBag.Departments = new SelectList(departments, "Id", "Name"); return(View()); }
public ActionResult Index() { List <Department> departments = departmentManager.GetAll(); List <Semester> semesters = semesterManager.GetAll(); ViewBag.departments = departments; ViewBag.semesters = semesters; return(View()); }
public ActionResult Save() { var designations = _designationManager.GetAll() ?? new List <Designation>(); var departments = _departmentManager.GetAll() ?? new List <Department>(); ViewBag.Designations = new SelectList(designations, "Id", "Name"); ViewBag.Departments = new SelectList(departments, "Id", "Name"); return(View()); }
public ActionResult Save() { List <Department> departments = departmentManager.GetAll().ToList(); List <Semester> semesters = semesterManager.GetAll.ToList(); ViewBag.Departments = departments; ViewBag.Semesters = semesters; return(View()); }
// // GET: /Teacher/Create public ActionResult Save() { IEnumerable <dynamic> desinationList = designationManager.GetAll; IEnumerable <Department> departments = departmentManager.GetAll(); ViewBag.Designations = desinationList; ViewBag.Departments = departments; return(View()); }
public ActionResult Index() { List <Department> departments = departmentManager.GetAll(); ViewBag.departments = departments; List <Course> courses = courseManager.GetAllWithTeacherName(); ViewBag.courses = courses; return(View()); }
public ActionResult Index() { List <Department> departments = departmentManager.GetAll(); string dateTime = DateTime.Today.Day + "-" + DateTime.Today.Month + "-" + DateTime.Today.Year; ViewBag.Departments = departments; ViewBag.dateTime = dateTime; return(View()); }
public ActionResult Index() { List <Department> departments = departmentManager.GetAll(); ViewBag.departments = departments; List <Designation> designations = designationManager.GetAll(); ViewBag.designations = designations; return(View()); }
public ActionResult AllocateClass() { var rooms = _classRoomManager.GetAllRooms() ?? new List <Room>(); var departments = _departmentManager.GetAll() ?? new List <Department>(); ViewBag.Departments = new SelectList(departments, "Id", "Name"); ViewBag.Rooms = new SelectList(rooms, "Id", "Name"); ViewBag.Days = new SelectList(_days, "Code", "Name"); return(View()); }
public ActionResult Add() { if ((string)Session["user"] != "admin") { return(RedirectToAction("../Home/Login")); } DepartmentVM department = new DepartmentVM(); department.Departments = _deptManager.GetAll(); return(View(department)); }
public ActionResult AssignCourseToTeacher() { IEnumerable <Course> courses = courseManger.GetAll; IEnumerable <Department> departments = departmentManager.GetAll(); IEnumerable <Teacher> teachers = teacherManager.GetAll; ViewBag.Courses = courses; ViewBag.Departments = departments; ViewBag.Teachers = teachers; return(View()); }
public IActionResult Create() { EmployeeCreateViewModel departmentList = new EmployeeCreateViewModel(); departmentList.DepartmentItems = departmentManager.GetAll().ToList().Select(c => new SelectListItem() { Text = c.Name, Value = c.Id.ToString() }).ToList(); return(View(departmentList)); }
public ActionResult Add() { StudentViewModel studentViewModel = new StudentViewModel(); studentViewModel.Students = _studentManager.GetAll(); studentViewModel.DepartmentSelectListItems = _departmentManager .GetAll() .Select(c => new SelectListItem() { Value = c.Id.ToString(), Text = c.Name } ).ToList(); return(View(studentViewModel)); }
public ActionResult ShowDepartment() { List <Department> aDepartments = aDepartmentManager.GetAll(); ViewBag.departments = aDepartments; return(View()); }
public ActionResult Create() { ViewBag.DepartmentId = new SelectList(_departmentManager.GetAll(), "Id", "Name"); var defaultSelectListItem = new List <SelectListItem>() { new SelectListItem() { Value = "", Text = "Select" } }; ViewBag.CourseId = defaultSelectListItem; ViewBag.TeacherId = defaultSelectListItem; return(View()); }
private void PopulateDepartments() { uxDepartments.DataSource = DepartmentManager.GetAll(); uxDepartments.Columns[0].Visible = false; uxDepartments.Columns[2].Visible = false; uxDepartments.Columns[1].Width = 200; }
private void deptComboBox_Click(object sender, EventArgs e) { if (deptComboBox.DataSource == null) { deptComboBox.DataSource = aDepartmentManager.GetAll(); } }
public ActionResult StudentForm(int?id) { if (id != null) { var studentId = Convert.ToInt32(id); var student = _studentManager.GetById(studentId); ViewBag.DepartmentId = new SelectList(_departmentManager.GetAll(), "Id", "Name", student.DepartmentId); ViewBag.CourseId = new SelectList(_courseManager.GetCoursesByDepartment(student.DepartmentId), "Id", "Name", student.CourseId); return(View(student)); } ViewBag.DepartmentId = new SelectList(_departmentManager.GetAll(), "Id", "Name"); ViewBag.CourseId = new SelectList(new List <Course>(), "Id", "Name"); return(View()); }
public ActionResult Index() { DepartmentManager departmentManager = new DepartmentManager(); List <Department> departments = departmentManager.GetAll(); ViewBag.departments = departments; return(View()); }
// GET: Department public ActionResult Index() { var departmentManager = new DepartmentManager(); List <Department> departments = departmentManager.GetAll(); return(View(departments)); }
public ActionResult ShowCourseStatistics() { IEnumerable <Department> departments = departmentManager.GetAll(); ViewBag.Departments = departments; IEnumerable <ViewCourseModel> courseViewModels = courseManager.GetViewCourseModel(); return(View(courseViewModels)); }
// // GET: /CourseView/ public ActionResult ShowAllCourse() { IEnumerable <Department> departments = departmentManager.GetAll(); ViewBag.Departments = departments; IEnumerable <CourseViewModel> courseViewModels = courseManager.GetCourseViewModels; return(View(courseViewModels)); }