public async Task <IActionResult> Delete(int id) { try { var entity = _service.DeleteAsync(id); return(Ok()); } catch (Exception) { return(BadRequest()); } }