Exemplo n.º 1
0
 public ActionResult AddInstructor(instructorVM instructorvm)
 {
     //if (ModelState.IsValid == true)
     //{
     InstructorBll.AddInstructor(instructorvm);
     ViewBag.Istructors = InstructorBll.getAllIstructors();
     // }
     return(RedirectToAction("index", "Instructor", new { area = "AdminArea" }));
 }
        public ActionResult AddInstructor(instructorQualificationPhoneViewModel instructorvm)
        {
            InstructorBll.AddInstructor(instructorvm);
            ViewBag.Istructors = InstructorBll.getAllIstructors();

            ViewBag.Qualifications = QualificationBll.getQualifications();

            return(RedirectToAction("index"));
        }