public List <DesignationModel> GetAllDesignations() { DesignationGateway aDesignationGateway = new DesignationGateway(); List <DesignationModel> designations = new List <DesignationModel>(); designations = aDesignationGateway.GetAllDesignations(); return(designations); }
// GET: Teacher/Save public ViewResult Save() { TeacherViewModel viewModel = new TeacherViewModel { Designations = DesignationGateway.GetAllDesignations(), Departments = DepartmentGateway.GetAllDepartments() }; ViewBag.msg = ""; return(View(viewModel)); }
public ActionResult Save(Teacher teacher) { TeacherViewModel viewModel = new TeacherViewModel { Designations = DesignationGateway.GetAllDesignations(), Departments = DepartmentGateway.GetAllDepartments() }; if (!ModelState.IsValid) { viewModel.Teacher = teacher; return(View(viewModel)); } int rowAffected = TeacherGateway.Save(teacher); if (rowAffected > 0) { return(Redirect("Save")); } return(View("~/Views/Shared/_BadRequest")); }
public List <Designation> GetAllDesignations() { DesignationGateway DesGate = new DesignationGateway(); return(DesGate.GetAllDesignations()); }
public List <Designation> GetAllDesignations() { return(designationGateway.GetAllDesignations()); }
public List <Designation> GetAllDesignations() { DesignationGateway aDesignationGateway = new DesignationGateway(); return(aDesignationGateway.GetAllDesignations()); }
public List <Designation> GetAllDesignationsManager() { return(aDesignationGateway.GetAllDesignations()); }
public List <TeacherDesignation> GetAllDesignations() { return(_designationGateway.GetAllDesignations()); }