SHARE
TWEET

Untitled

a guest Sep 17th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public IEnumerable<Book> QueryByCode(string code)
  2. {
  3.     var result = _bookActor.Ask<IEnumerable<Book>>(code).Result;
  4.  
  5.     return result;
  6. }
  7.  
  8. public IEnumerable<Book> Query(DateTime startDataDateTime, DateTime endDateTime)
  9. {
  10.     var expression = new Func<Book, bool>(w => w.PublishDate >= startDataDateTime && w.PublishDate <= endDateTime);
  11.  
  12.     var result = _bookActor.Ask<IEnumerable<Book>>(expression).Result;
  13.     return result;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top