Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ElxanQuliyev committed Jun 6, 2022
1 parent b973345 commit ee99b01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DataAccess/Concrete/EntityFrameWork/EfCourseDal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public async Task<List<Course>> FilterCourse(string? searchTerm)
{
using UdMyDbContext context = new();
var myCourses = await context.Courses
.Where(c=>c.Name.Contains(searchTerm))
//|| c.Category.Name.Contains(searchTerm)
//|| c.Instructor.FullName.Contains(searchTerm))
.Where(c=>c.Name.Contains(searchTerm)
|| c.Category.Name.Contains(searchTerm)
|| c.Instructor.FullName.Contains(searchTerm))
.Include(c => c.Instructor)
.Include(c => c.Category)
.ToListAsync();
Expand Down

0 comments on commit ee99b01

Please sign in to comment.