Esempio n. 1
0
        public async Task <IActionResult> EndMatch([FromBody] MatchEndBody matchEnd)
        {
            try
            {
                await service.EndMatch(GetApiUserIdentityContainer(), matchEnd);

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