예제 #1
0
        public IActionResult Create(NomeBaseViewModel jogo)
        {
            if (!Request.Headers.TryGetValue(ControllersConstants.UsuarioId, out StringValues uId) ||
                !Guid.TryParse(uId, out Guid usuarioId))
            {
                throw new ApiException(ApiErrorCodes.INVUSU);
            }

            bool _result = _service.Create(jogo, usuarioId);

            return(Ok(_result));
        }