public IActionResult CreateEducation() { ViewBag.EducationCourses = _courseLogic.Read(new CourseBindingModel { Specialication = Program.Client.Specialication }); return(View()); }
public List <CourseViewModel> GetEducationCourses(EducationViewModel visit) { var doctors = new List <CourseViewModel>(); foreach (var doctor in visit.EducationCourses) { doctors.Add(doctorLogic.Read(new CourseBindingModel { Id = doctor.CourseId }).FirstOrDefault()); } return(doctors); }
public IActionResult Course() { ViewBag.Courses = _course.Read(null); return(View()); }