Beispiel #1
0
        public IHttpActionResult Delete(int id)
        {
            var      sportService = new SportService();
            SportDTO svm          = sportService.deleteSport(id);

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