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