コード例 #1
0
 public void Delete(ProjectDetail projectDetail)
 {
     if (projectDetail.ProjectName != null && projectDetail.Status != null)
     {
         _context.Delete(projectDetail);
     }
 }
コード例 #2
0
        public ActionResult CreateProject(ProjectDetail projectDetail)
        {
            if (projectDetail != null && ModelState.IsValid)
            {
                return Json(_projectDetailService.Add(projectDetail));
            }

            return Json(-1);
        }
コード例 #3
0
        public ActionResult DeleteProject(ProjectDetail projectDetail)
        {
            if (projectDetail != null && ModelState.IsValid)
            {
                _projectDetailService.Delete(projectDetail);
                return Json(1);
            }

            return Json(-1);
        }
コード例 #4
0
 public int Add(ProjectDetail projectDetail)
 {
     _context.Add(projectDetail);
     return projectDetail.ProjectDetailId;
 }