public HttpResponseMessage PutRSVP(Rsvp rsvp) { rsvp.IpAddress = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; rsvp.Date = DateTime.UtcNow; _repo.Rsvp(rsvp); return(Request.CreateResponse(HttpStatusCode.NoContent)); }