public IHttpActionResult MakeRate(int id, int rate) { try { auctionService.EditCarPrice(id, rate); auctionService.Save(); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.ToString())); } }