Exemple #1
0
        public void Update(AssignedRequestsDTO assignedRequestsDTO)
        {
            AssignedRequests assignedRequests = new AssignedRequests();

            assignedRequests.TeamId                = assignedRequestsDTO.TeamId;
            assignedRequests.RequestId             = assignedRequestsDTO.RequestId;
            _context.Entry(assignedRequests).State = EntityState.Modified;
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        public void Delete(int id)
        {
            AssignedRequests assignedRequests = Find(id);

            _context.assignedRequests.Remove(assignedRequests);
        }