示例#1
0
 public ActionResult <string> Remove(long id)
 {
     try
     {
         ProductsService.Detele(id);
         return(Ok("Produkt został usunięty"));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }