public async Task <IHttpActionResult> EndBiddingWhenExpired(int id) { try { await lotService.EndBiddingWhenTimeExpired(id); return(Ok("Bidding end")); } catch (NotFoundException) { return(NotFound()); } }