Esempio n. 1
0
        public IActionResult AddNewMatch([FromBody] Match matchToAdd)
        {
            var wasMatchAdded = _matchRepository.AddNewMatch(matchToAdd);

            if (!wasMatchAdded)
            {
                return(Forbid());
            }
            return(Ok(true));
        }