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); }
public BillsRepository(ReadContext readContext) { _readContext = readContext; }