コード例 #1
0
        public async Task <IActionResult> DeleteAsync(int projectId)
        {
            if (await _repo.ProjectExistsAsync(projectId))
            {
                await _repo.DeleteProjectAsync(projectId);

                return(NoContent());
            }
            return(NotFound("Project not found"));
        }