public IActionResult DeleteTransport(int?id) { var result = _transportService.DeleteTransport(id); if (result) { return(Ok()); } return(BadRequest("transport wasn't deleted")); }
public IActionResult Delete(Guid id) { var result = _transportService.DeleteTransport(id); if (!result.IsSuccess) { return(BadRequest(result)); } return(Ok(result.Response)); }
public async Task <ActionResult <Transport> > Delete(int id) { return(await _service.DeleteTransport(id)); }