Example #1
0
 public IHttpActionResult DeleteProduct(int id)
 {
     try
     {
         return(Ok(repository.delete(id)));
     }
     catch (Exception e)
     {
         return(NotFound());
     }
 }
 public IHttpActionResult DeleteAuthor(int id)
 {
     try
     {
         return(Ok(authorRepository.delete(id)));
     }
     catch (Exception e)
     {
         return(NotFound());
     }
 }