/// <summary> /// Create a new EmployeePlacement /// </summary> /// <param name="employeeId"></param> /// <param name="departmentId"></param> /// <param name="allocate"></param> public void CreateEmployeePlacement(long employeeId, string departmentId, decimal allocate) { EmployeePlacement newEmployeePlacement = new EmployeePlacement { EmployeeID = employeeId, DepartmentID = departmentId, EmployeeAllocate = allocate }; db.EmployeePlacement.Add(newEmployeePlacement); db.SaveChanges(); }
public void DeleteEmployeePlacement(EmployeePlacement employeePlacement) { db.EmployeePlacement.Remove(employeePlacement); db.SaveChanges(); }