public ActionResult TeacherSave() { //ViewBag.departmentList = departmentManager.GetAllDepartmentForDropDown(); //ViewBag.designationList = teacherManager.GetAllDesignationForDropDown(); ViewBag.departments = departmentManager.GetAllDepartmentForDropDown(); ViewBag.designations = teacherManager.GetAllDesignationForDropDown(); return(View()); }
public ActionResult CourseSave() { //ViewBag.departmentList = departmentManager.GetAllDepartmentForDropDown(); //ViewBag.semesterList = courseManager.GetAllSemesterForDropDown(); ViewBag.departments = departmentManager.GetAllDepartmentForDropDown(); ViewBag.semesters = courseManager.GetAllSemesterForDropDown(); return(View()); }
public async Task <ActionResult <Result> > GetDepartmentsList() { try { var Result = await _DepartmentManager.GetAllDepartmentForDropDown(); return(Result); } catch (Exception ex) { _exceptionManager.SaveLog(Request.Path, 0, ex, GetUserName()); return(new Result() { IsSuccess = false, Errors = new List <string> { Resources.ExceptionMessage } }); } }
public ActionResult CourseAssign( ) { ViewBag.departments = departmentManager.GetAllDepartmentForDropDown(); ViewBag.courses = courseManager.GetAllCourseForDropDown(); return(View()); }