Esempio n. 1
0
        public IActionResult Delete(int id)
        {
            if (!ModelState.IsValid)
            {
                return(new BadRequestObjectResult(ModelState));
            }
            else
            {
                _subService.Delete(id);


                return(new OkObjectResult(id));
            }
        }