public bool deleteCompany(string id) { var company = _context.Companies.Find(id); if (company == null) { return(false); } else { company.Status = Status.INACTIVE; _context.SaveChanges(); return(true); } }
public bool deleteProject(string projectid) { var project = _context.Projects.Find(projectid); if (project == null) { return(false); } else { project.ProjectStatus = Status.INACTIVE; _context.SaveChanges(); return(true); } }