public void Post([FromBody] TestRun testRun) { TestRunsData dataContext = new TestRunsData(); dataContext.InsertDocument(testRun); }
public IEnumerable <TestRun> Get(string category) { TestRunsData dataContext = new TestRunsData(); return(dataContext.GetDocuments().Where(t => t.Category == category)); }
public TestRun Get(int id) { TestRunsData dataContext = new TestRunsData(); return(dataContext.GetTestRun(id)); }
public IEnumerable <TestRun> Get() { TestRunsData dataContext = new TestRunsData(); return(dataContext.GetDocuments()); }