Example #1
0
        public IActionResult Post(Row row)
        {
            Row rowEntry = _leaderboardService.Get(row.ClientId);

            if (rowEntry == null)
            {
                _leaderboardService.Create(row);
                return(Ok());
            }

            return(Conflict(new { message = $"An existing enttry with from client {row.ClientId} was found" }));
        }