[Route("")] [HttpPost] public IHttpActionResult CreateMax4Sale(EditMax4SaleViewModel max4saleViewModel) { var conflicts = ChangeMax4Sale(max4saleViewModel, "Add"); if (conflicts == 0) { return Ok(max4saleViewModel); } return ThrowError(conflicts); }In the ChangeMax4Sale method I have at the bottom:
max4saleViewModel = GetModel(max4sale);At this point when I examine max4SaleViewModel variable I can see that its Id is properly set to the new Id.