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

            if (project == null)
            {
                return(NotFound());
            }
            _projectRepo.DeleteProject(project);
            _projectRepo.SaveChanges();
            return(NoContent());
        }