Exemplo n.º 1
0
 private static void ImportBillData(ReadContext readContext)
 {
     var client = new RestClient("http://safe-plains-5453.herokuapp.com");
     var response = client.Execute<Bill>(new RestRequest("bill.json", Method.GET));
     response.Data.Id = Guid.NewGuid().ToString("N");
     readContext.Bills.Create(response.Data);
 }
Exemplo n.º 2
0
 public BillsRepository(ReadContext readContext)
 {
     _readContext = readContext;
 }