/// <summary> /// Adds a worklog to the project /// </summary> /// <param name="workStartedDateTime">Date and time work started</param> /// <param name="workEndedDateTime">Date and time work ended</param> /// <param name="description">Description of the work done</param> /// <param name="kilometersCovered">Distance traveled for the work</param> /// <param name="employeeId">Id of the employee that did the work</param> public void AddWorklog(DateTime workStartedDateTime, DateTime workEndedDateTime, string description, double kilometersCovered, int employeeId) { var wl = new SisWorklog(workStartedDateTime, workEndedDateTime, description, kilometersCovered, employeeId); _worklogs.Add(wl); }
/// <summary> /// Removes a sis worklog from the project /// </summary> /// <param name="worklog">The worklog to be removed</param> public void RemoveWorklog(SisWorklog worklog) { _worklogs.Remove(worklog); }