public IActionResult Delete(int id) { try { service.Delete(id); return(NoContent()); } catch (Exception ex) { return(NotFound(ex)); } }
public async Task <IActionResult> Delete(int id) { try { await service.Delete(id); return(NoContent()); } catch (Exception ex) { return(NotFound(ex)); } }
public async Task <ActionResult> Delete(int id) { var success = await _planeService.Delete(id); if (success) { return(Ok()); } return(BadRequest()); }
public IActionResult Delete([FromRoute] int id) { var succedded = planeService.Delete(id); if (succedded) { return(NoContent()); } else { return(NotFound()); } }
public async Task <IActionResult> DeleteOrder(Guid id) { await _planeService.Delete(id); return(Ok()); }
public void Delete(int id) { _planeService.Delete(id); }
public async Task <IActionResult> Delete(int id) { await _service.Delete(id); return(NoContent()); }