Esempio n. 1
0
 public IActionResult Delete(int id)
 {
     if (iproduct.GetDetailbyId(id) == null)
     {
         return(BadRequest());
     }
     if (iproduct.DeleteDetail(id))
     {
         return(Ok());
     }
     return(BadRequest());
 }