Exemple #1
0
        public ActionResult Create([FromBody] Round round)
        {
            Round roundResult;

            try
            {
                if (round != null)
                {
                    roundResult = _service.AddWithWinner(round);
                }
                else
                {
                    return(BadRequest());
                }
            }
            catch (Exception e)
            {
                return(StatusCode(500, e));
            }

            return(Ok(roundResult));
        }