Skip to content

Commit

Permalink
Update ModuleController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
anjoy8 committed Oct 21, 2024
1 parent 39a98a2 commit 2d4b337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Blog.Core.Api/Controllers/ModuleController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task<MessageModel<PageModel<Modules>>> Get(int page = 1, string key
key = "";
}

Expression<Func<Modules, bool>> whereExpression = a => a.IsDeleted != true && (a.Name != null && a.Name.Contains(key));
Expression<Func<Modules, bool>> whereExpression = a => a.IsDeleted != true && ((a.Name != null && a.Name.Contains(key) || (a.LinkUrl != null && a.LinkUrl.Contains(key))));

PageModel<Modules> data = new PageModel<Modules>();

Expand Down

0 comments on commit 2d4b337

Please sign in to comment.