public static int GetIntValue(this ProfileAlongLitterBinTypeEnum type) { return((int)type); }
public List <ProfileSanitationAlongLitterBinEntity> GetList(Pagination pagination, string keyword, string projectId, string streetId, ProfileAlongLitterBinTypeEnum type) { int typeInt = type.GetIntValue(); var expression = ExtLinq.True <ProfileSanitationAlongLitterBinEntity>(); if (!string.IsNullOrEmpty(keyword)) { expression = expression.And(t => t.F_EnCode.Contains(keyword)); } if (!string.IsNullOrEmpty(streetId)) { expression = expression.And(t => t.StreetId == streetId); } expression = expression.And(t => t.Type == typeInt); expression = expression.And(t => t.ProjectId == projectId); return(service.FindList(expression, pagination)); }