adding a new value to list overwrite previous values in the list
I’m trying to add multiple items to a list but at the end all items have the same value equal to last item public static List<Ausencias> SeparateMonth(Ausencias aus) { List<Ausencias> ausencias = new List<Ausencias>(); try { var resultSplit = Helper.SplitFechas(aus.PI_StartDate, aus.PI_EndDate); if (resultSplit.Count > Constant.ONE) { foreach (var item in resultSplit) { Ausencias ausenc =… Read More adding a new value to list overwrite previous values in the list