Esempio n. 1
0
        public IHttpActionResult Post(SportDTO sportVM)
        {
            var      sportService = new SportService();
            SportDTO svm          = sportService.addSport(sportVM);

            if (svm == null)
            {
                return(BadRequest("This sport already exist in DB"));
            }

            return(Ok(svm));
        }