Exemplo n.º 1
0
        public IHttpActionResult DeleteSuperhero(int id)
        {
            bool result;

            result = superheroRepository.DeleteById(id);

            if (result == false)
            {
                return(NotFound());
            }

            return(Ok());
        }