Exemplo n.º 1
0
        public IHttpActionResult Get(int id)
        {
            var sportService = new SportService();

            SportDTO account = sportService.getSportById(id);

            if (account == null)
            {
                return(NotFound());
            }

            return(Ok(account));
        }