public HttpResponseMessage DeleteSupplierById(int id)
 {
     _service.DeleteSupplierById(id);
     _service.ApplyChanges();
     return(Request.CreateResponse(HttpStatusCode.OK, $"Suppliers {id} deleted "));
 }
Example #2
0
 /// <summary>
 /// Видаляє постачальника
 /// </summary>
 /// <param name="id">Ідентифікатор постачальника</param>
 public void DeleteSupplierById(int id) => suppliersService.DeleteSupplierById(id);