/// <summary> /// Deletes a model from the repository by the given id /// </summary> /// <param name="id"></param> // DELETE api/<controller>/5 public void Delete(int id) { _repo.DeleteModel(id); TestHub.RemoveTestModel(id); }