public IActionResult DeleteTransport(int?id)
        {
            var result = _transportService.DeleteTransport(id);

            if (result)
            {
                return(Ok());
            }
            return(BadRequest("transport wasn't deleted"));
        }
예제 #2
0
        public IActionResult Delete(Guid id)
        {
            var result = _transportService.DeleteTransport(id);

            if (!result.IsSuccess)
            {
                return(BadRequest(result));
            }

            return(Ok(result.Response));
        }
예제 #3
0
 public async Task <ActionResult <Transport> > Delete(int id)
 {
     return(await _service.DeleteTransport(id));
 }