|
|
@@ -27,11 +27,11 @@ namespace CallCenterApi.Interface.Controllers
|
|
27
|
27
|
StringBuilder sb = new StringBuilder();
|
|
28
|
28
|
if (!string.IsNullOrWhiteSpace(filter.Name))
|
|
29
|
29
|
{
|
|
30
|
|
- sb.Append(" and F_RoleName like '%" + filter.Name ?? "" + "%' ");
|
|
|
30
|
+ sb.Append($" and F_RoleName like '%{filter.Name}%' ");
|
|
31
|
31
|
}
|
|
32
|
32
|
if (!string.IsNullOrWhiteSpace(filter.Code))
|
|
33
|
33
|
{
|
|
34
|
|
- sb.Append(" and F_RoleCode like '%" + filter.Code ?? "" + "%' ");
|
|
|
34
|
+ sb.Append($" and F_RoleCode like '%{filter.Code}%' ");
|
|
35
|
35
|
}
|
|
36
|
36
|
DataTable dt = new DataTable();
|
|
37
|
37
|
int recordCount = 0;
|