public IActionResult Delete(int permitId) { var result = _service.Delete(permitId); if (result) { return(Ok()); } else { return(BadRequest()); } }