Adding
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using LCU.Library.Internal.DataCleanUpModel.Entities;
|
||||
|
||||
namespace LCU.Api.Internal.DataCleanUpLib.Extensions
|
||||
{
|
||||
public static class QueryableExcludeMinorAccountType
|
||||
{
|
||||
public static IQueryable<Ltv_DataCleanUp> ExcludeMinorAccountType(this IQueryable<Ltv_DataCleanUp> queryable, List<string> listExcludedMinorAccountTypes)
|
||||
{
|
||||
if (listExcludedMinorAccountTypes == null || !listExcludedMinorAccountTypes.Any())
|
||||
{
|
||||
return queryable;
|
||||
}
|
||||
|
||||
return queryable.Where(ltv_DataCleanUp => !listExcludedMinorAccountTypes.Contains(ltv_DataCleanUp.MinorType));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user