Beispiel #1
0
        public async Task <IActionResult> AppendMatchStats([FromBody] MatchStatsBody matchStats)
        {
            try
            {
                await service.AppendMatchStats(GetApiUserIdentityContainer(), matchStats);

                return(Ok());
            }
            catch (Exception)
            {
                return(Error(new ErrorResult
                {
                    Classification = ErrorClassification.InternalError,
                    Message = "Failed saving match statistics"
                }));
            }
        }