public IActionResult Delete(int id) { AppLogger.LogResourceRequest(nameof(Delete), base.GetUsernameForRequest()); try { if (_bidService.FindById(id) == null) { return(NotFound(AppConfig.ResourceNotFoundById + id)); } _bidService.Delete(id); return(Ok()); } catch (Exception ex) { return(BadRequestExceptionHandler(ex, nameof(Delete))); } }