Exemplo n.º 1
0
        public IActionResult Delete(int id)
        {
            var result = majorService.Delete(id);

            if (result)
            {
                return(Ok());
            }
            else
            {
                return(NotFound(id));
            }
        }