//Search Entities public async Task <IEnumerable <EntryData> > SearchEntryData(List <string> lst, List <string> includeLst = null) { using (var ctx = new EntryDataService()) { return(await ctx.GetEntryDataByExpressionLst(lst, includeLst).ConfigureAwait(false)); } }
private async Task <EntryData> GetEntryData(string entryDataId, DateTime entryDateTime) { using (var ctx = new EntryDataService()) { return ((await ctx.GetEntryDataByExpressionLst(new List <string>() { string.Format("EntryDataId == \"{0}\"", entryDataId), string.Format("EntryDataDate == \"{0}\"", entryDateTime.ToString("yyyy-MMM-dd")) }).ConfigureAwait(false)).FirstOrDefault()); //eLst.FirstOrDefault(x => x.EntryDataId == item.e.EntryDataId && x.EntryDataDate != item.e.EntryDataDate); } }