Skip to content

Commit

Permalink
Contains working
Browse files Browse the repository at this point in the history
  • Loading branch information
goodtocode committed Jul 3, 2023
1 parent 82fda75 commit b00d303
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public BusinessRepo(ISubjectsDbContext context, int pageSize = 20)
public async Task<Result<PagedResult<BusinessEntity>>> GetBusinessesByNameAsync(string businessName, int page, CancellationToken cancellationToken)
{
var businessResult = await _context.Business
//.Where(b => b.BusinessName.Contains(businessName, StringComparison.CurrentCultureIgnoreCase))
.Where(b => b.BusinessName == businessName)
.Where(b => b.BusinessName.Contains(businessName))
.OrderBy(b => b.BusinessKey)
.GetPagedAsync(page, _pageSize, cancellationToken);
return Result.Success(businessResult);
Expand Down

0 comments on commit b00d303

Please sign in to comment.