public async Task <JsonResult> EndAuction([FromBody] List <int> auctionId) { try { await _auctionService.Complete(auctionId); return(Json(new { success = true, result = HttpStatusCode.OK })); } catch (Exception ex) { return(Json(new { success = false, result = ex.Message })); } }