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