コード例 #1
0
        public IActionResult Delete(int id)
        {
            if (repo.Get(id) == null)
            {
                return(NotFound());
            }

            repo.Remove(id);
            return(new NoContentResult());
        }