public void Update(AssignedRequestsDTO assignedRequestsDTO) { AssignedRequests assignedRequests = new AssignedRequests(); assignedRequests.TeamId = assignedRequestsDTO.TeamId; assignedRequests.RequestId = assignedRequestsDTO.RequestId; _context.Entry(assignedRequests).State = EntityState.Modified; }
public void Add(AssignedRequestsDTO assignedRequestsDTO) { AssignedRequests assignedRequests = new AssignedRequests(); assignedRequests.TeamId = assignedRequestsDTO.TeamId; assignedRequests.EmployeeId = assignedRequestsDTO.EmployeeId; assignedRequests.ProjectPositionId = assignedRequestsDTO.ProjectPositionId; assignedRequests.RequestId = assignedRequestsDTO.RequestId; _context.assignedRequests.Add(assignedRequests); }
public void Delete(int id) { AssignedRequests assignedRequests = Find(id); _context.assignedRequests.Remove(assignedRequests); }