public async Task <IActionResult> Delete([FromRoute] int id) { var origin = await _originService.DeleteAsync(id); if (origin == null) { return(NotFound()); } return(Ok(origin)); }