public Task <Course> GetCourseAsync(int id) { return(Task.FromResult(CourseDAL.GetCourseById(id))); //return Task.FromResult(_courses.Where(c => c.Id == id).FirstOrDefault()); }
public static Course GetCourseById(int id) { return(CourseDAL.GetCourseById(id)); }
// Hämta bana m.h.a. CourseID public Course GetCourseById(int courseId) { return(CourseDAL.GetCourseById(courseId)); }