public void PostDeleteMethod(int id) { using (var Filerepo = new TestResultRepository()) { if (id != 0) { Result _file = Filerepo.GetById(id); Filerepo.Delete(_file); } } }
public IActionResult Delete(int Id) { _testRepo.Delete(Id); return(Ok()); }