Ejemplo n.º 1
0
 public IActionResult CreateEducation()
 {
     ViewBag.EducationCourses = _courseLogic.Read(new CourseBindingModel
     {
         Specialication = Program.Client.Specialication
     });
     return(View());
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public IActionResult Course()
 {
     ViewBag.Courses = _course.Read(null);
     return(View());
 }