public IActionResult Delete(int id) { if (_crewsSrvice.Delete(id)) { return(Ok()); } return(NotFound()); }
public async Task Delete(int id) { await service.Delete(id); }