public async Task <IHttpActionResult> Post([FromBody] Golfer entity) { var result = await _repo.CreateDocumentAsync(entity); var id = result.Resource.Id; var model = _repo.GetById(id); return(Ok(model)); }