public async Task <IHttpActionResult> PlaceABid([FromUri] string id, [FromBody] BidViewModel vm) { var bidderName = User.Identity.Name; var result = _roomAppService.PlaceABid(bidderName, id, vm.Amount); if (result.IsValid) { return(Ok()); } return(BadRequest(result.ToModelState())); }