public async Task <IActionResult> DeleteOil(int id) { try { var result = await _garageService.DeleteOil(id); return(Ok(result)); } catch (Exception ex) { ex.ToExceptionless().Submit(); return(BadRequest()); } }
public async Task <IActionResult> DeleteOil(int id) { try { var result = await _garageService.DeleteOil(id); return(Ok(result)); } catch (Exception ex) { ex.ToExceptionless().Submit(); return(BadRequest()); } }