示例#1
0
        public async Task <ActionResult <Game> > Post([FromBody] Friend friend)
        {
            var inserted = await _friendService.AddAsync(friend);

            return(CreatedAtRoute("Get", new { id = friend.Id }, friend));
        }