DateTime is immutable. That means you cannot change it’s state and have to assign the result of an operation to a variable.
endDate = endDate.AddDays(addedDays);
DateTime is immutable. That means you cannot change it’s state and have to assign the result of an operation to a variable.
endDate = endDate.AddDays(addedDays);