예제 #1
0
        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));
        }