public void Delete(ProjectDetail projectDetail) { if (projectDetail.ProjectName != null && projectDetail.Status != null) { _context.Delete(projectDetail); } }
public ActionResult CreateProject(ProjectDetail projectDetail) { if (projectDetail != null && ModelState.IsValid) { return Json(_projectDetailService.Add(projectDetail)); } return Json(-1); }
public ActionResult DeleteProject(ProjectDetail projectDetail) { if (projectDetail != null && ModelState.IsValid) { _projectDetailService.Delete(projectDetail); return Json(1); } return Json(-1); }
public int Add(ProjectDetail projectDetail) { _context.Add(projectDetail); return projectDetail.ProjectDetailId; }