|
@@ -45,7 +45,31 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
if(!string.IsNullOrEmpty(data["Areas"].ToString()))
|
|
|
{
|
|
|
string Areas = data["Areas"].ToString();
|
|
|
- query = query.Where(m => m.BankName.Contains(Areas));
|
|
|
+ if(Areas.Contains(","))
|
|
|
+ {
|
|
|
+ string[] AreasList = Areas.Split(',');
|
|
|
+ if(AreasList.Length == 3)
|
|
|
+ {
|
|
|
+ string p = AreasList[0];
|
|
|
+ string c = AreasList[1];
|
|
|
+ string a = AreasList[2];
|
|
|
+ query = query.Where(m => (m.BankName.Contains(p) || m.BankName.Contains(c) || m.BankName.Contains(a)));
|
|
|
+ }
|
|
|
+ else if(AreasList.Length == 2)
|
|
|
+ {
|
|
|
+ string p = AreasList[0];
|
|
|
+ string c = AreasList[1];
|
|
|
+ query = query.Where(m => (m.BankName.Contains(p) || m.BankName.Contains(c)));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ query = query.Where(m => m.BankName.Contains(Areas));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ query = query.Where(m => m.BankName.Contains(Areas));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if(value.Contains("\"BankName\""))
|