コード例 #1
0
        public ActionResult RemoveProject(int id)
        {
            var project = _repo.GetProject(id);

            if (project == null)
            {
                return(NotFound());
            }
            _repo.RemoveProject(project);
            _repo.SaveChanges();
            return(NoContent());
        }